Getting Access Tokens from Social Login Providers
Cotter stores all OAuth Tokens that are returned from the Social Login Providers when a user sign in. You can retrieve the tokens using the following API Requests.
Last updated
Cotter stores all OAuth Tokens that are returned from the Social Login Providers when a user sign in. You can retrieve the tokens using the following API Requests.
Last updated
GET
https://www.cotter.app/api/v0/oauth/token/list/:cotter_user_id
This will give you a list of access tokens that the user has for each social login provider that is associated with their account.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
https://www.cotter.app/api/v0/oauth/token/:provider_name/:cotter_user_id
Get an access token from one provider for the user.
DELETE
https://www.cotter.app/api/v0/oauth/token/:provider_name/:cotter_user_id
Delete an access token from a provider for the user.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
cotter_user_id
string
The user's Cotter User ID
API_KEY_ID
string
Your API Key ID
API_SECRET_KEY
string
Your API Secret Key
cotter_user_id
string
The user's Cotter User ID
provider_name
string
One of: GITHUB
API_KEY_ID
string
Your API Key ID
API_SECRET_KEY
string
Your API Secret Key
cotter_user_id
string
The user's Cotter User ID
provider_name
string
One of: GITHUB
API_KEY_ID
string
Your API Key ID
API_SECRET_KEY
string
Your API Secret Key