Auth APIs/Push Notifications
Remove Push Token
DELETE
/auth/push-tokenDeactivate push tokens. If token provided → deactivate that token. If deviceId only → all for device. If empty → all for user.
Bearer token required
Content-Type:
application/jsonDestructive Operation
This action cannot be undone. Ensure you have the correct resource identifier before proceeding.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Optional | FCM token |
deviceId | string | Optional | Device identifier |
Request Example
JSON
{
"token": "fMr9K7...",
"deviceId": "device-uuid-123"
}Code Examples
curl -X DELETE 'https://<your-domain>:3001/auth/push-token' \
-H 'Authorization: Bearer <token>'