/
v3.0.11Get access

logout

Used to terminate the user’s active session and securely log them out of the system. The call optionally accepts device notification identifiers (such as fcm_token and subscription_id) to unregister the device from push notification services. This ensures the user no longer receives notifications after logout. The request triggers backend session invalidation, token cleanup, and removal of associated push subscriptions for security and proper device management.

Request parameters:

NameDescriptionTypeValuesDefault
fcmToken
Delete fcm token if provided for the user [reserved so far]string--
oneSignalSubId
Delete OneSignal token if provided for the user [reserved so far]string--

Call example:

logout()

Response examples:

{
  code: 0,
  rid: 1879473941,
  data: null
}