Using HTTP Requests
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:
Cotter's Identity Token that you get from verifying user's email/phone number OR
Cotter's Event Token that you get from authenticating using Trusted Device, Biometric or Pin.
Getting Tokens using Identity Token
After successfully verifying user's email or phone number, you'll receive Cotter's Identity Token. Pass it to the body of the request under field identity_token
Getting Tokens using Identity Token
POST
https://www.cotter.app/api/v0/token
Getting OAuth tokens using Cotter's Identity Token
Headers
Name | Type | Description |
---|---|---|
API_KEY_ID | string | Your |
API_SECRET_KEY | string | Your |
Content-type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
grant_type | string | Grant type is |
identity_token | object | Cotter's Identity Token returned to you after successfully verifying user's email or phone number. |
Getting Tokens using Event Token
After successfully authenticating users using Trusted Devices, you will receive Cotter's Event Token. Pass it to the body of the request under field event_token
Getting Tokens using Event Token
POST
https://www.cotter.app/api/v0/token
Getting OAuth tokens using Cotter's Event Token
Headers
Name | Type | Description |
---|---|---|
API_KEY_ID | string | Your |
API_SECRET_KEY | string | Your |
Content-type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
grant_type | string | Grant type is |
event_token | object | Cotter's Event Token returned to you after successfully authenticate users using Trusted Device |
Last updated