Using HTTP Requests
Last updated
Last updated
Other than the current flow in the SDK, you can also request for OAuth Tokens using http requests directly to Cotter's server.
You need to have either:
that you get from verifying user's email/phone number OR
that you get from authenticating using Trusted Device, Biometric or Pin.
After successfully verifying user's email or phone number, you'll receive . Pass it to the body of the request under field identity_token
POST
https://www.cotter.app/api/v0/token
Getting OAuth tokens using Cotter's Identity Token
API_KEY_ID
string
Your API_KEY_ID
API_SECRET_KEY
string
Your API_SECRET_KEY
Content-type
string
application/json
grant_type
string
Grant type is identity_token
identity_token
object
Cotter's Identity Token returned to you after successfully verifying user's email or phone number.
POST
https://www.cotter.app/api/v0/token
Getting OAuth tokens using Cotter's Event Token
API_KEY_ID
string
Your API_KEY_ID
API_SECRET_KEY
string
Your API_SECRET_KEY
Content-type
string
application/json
grant_type
string
Grant type is event_token
event_token
object
Cotter's Event Token returned to you after successfully authenticate users using Trusted Device
After successfully authenticating users using Trusted Devices, you will receive Pass it to the body of the request under field event_token