Create Session
Creates an application or user session.
Recipes
Create application session
Create application session
1. Set your Application ID
application_id from the Dashboard => YOUR_APP => Overview section.2. Set your Authorization Key
auth_key from the Dashboard => YOUR_APP => Overview section.3. Set a timestamp
timestamp value in the Unix Timestamp.4. Set a nonce
nonce value which is a unique random number that can’t be sent twice.5. Set a signature
signature value. Use this guide to learn how to generate a signature.6. As a result, the API returns a newly created application session.
Create user session
Create user session
1. Set your Application ID
application_id from the Dashboard => YOUR_APP => Overview section.2. Set your Authorization Key
auth_key from the Dashboard => YOUR_APP => Overview section.3. Set a timestamp
timestamp value in the Unix Timestamp.4. Set a nonce
nonce value which is a unique random number that can’t be sent twice.5. Set a signature
signature value. Use this guide to learn how to generate a signature.6. Set a login of the user
login value to identify a user on the server.7. Set a password of the user
password value to identify a user on the server.8. As a result, the API returns a newly created user session.
Create session with Firebase phone number
Create session with Firebase phone number
1. Set your Application ID
application_id from the Dashboard => YOUR_APP => Overview section.2. Set your Authorization Key
auth_key from the Dashboard => YOUR_APP => Overview section.3. Set a Firebase user ID token
firebase_phone[access_token].4. Set an ID of the Firebase project
firebase_phone[project_id].5. Set a nonce
nonce value which is a unique random number that can’t be sent twice.6. Set a social network provider
provider param to set a social network provider.7. Set a signature
signature value. Use this guide to learn how to generate a signature.8. Set a timestamp
timestamp value in the Unix Timestamp.9. As a result, the API returns a newly created user session.
- 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.