Use this page to learn how to authenticate your users with QuickBlox.
Application session token | Description |
---|---|
Application session token | This kind of access token is needed to read the app data. Has only READ access to resources. The expiration time after the last REST API request is 2 hours. |
User session token | The user token is the most commonly used type of token. This kind of access token is needed any time the app calls an API to read, modify or write a specific user’s data on their behalf. Has READ/WRITE access to resources. The expiration time after the last REST API request is 2 hours. |
createUser()
method.
login()
method.
logout()
method.
Required session does not exist
. In this case, you have to recreate the session token.
In Flutter SDK since version 0.9.0, we have a listener to find if the session token has expired.
startSessionWithToken()
method, also before calling the method to get notified that the session has expired you need to add session expiration listener. Don’t forget to log in user if you pass the application token.
qbSession
.
Field | Required | Description |
---|---|---|
applicationId | yes | Application ID. |
userId | yes | User ID. |
expirationDate | yes | Session token expiration date. |
token | yes | QuickBlox session token. |