post https://api.quickblox.com/session.json
Creates an application or user session.
Recipes
Create application session
Open Recipe
Create user session
Open Recipe
Create session with Firebase phone number
Open Recipe
Learn more about QuickBlox session token in the Application vs User session token section.
Application session
To create an application session you need to pass the required parameters only.
User session
To create a user session you need to pass extra parameters together with the required parameters. Take a look at five types of user authentication and their respective extra parameters below:
- Login and password.
user[login]
anduser[password]
. - Email and password.
user[email]
anduser[password]
. - Social.
provider=facebook
,keys[token]
, andkeys[secret]
. - Firebase phone number.
provider=firebase_phone
,firebase_phone[project_id]
, andfirebase_phone[access_token]
. - Custom identity provider.
user[login]
anduser[password]
. Learn more about custom identity provider authentication from our guide.