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.
Get a List of Access Tokens from All Social Logins for a User
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.
Path Parameters
cotter_user_id
string
The user's Cotter User ID
Headers
API_KEY_ID
string
Your API Key ID
API_SECRET_KEY
string
Your API Secret Key
Get an Access Token from a Specific Provider for a User
GET
https://www.cotter.app/api/v0/oauth/token/:provider_name/:cotter_user_id
Get an access token from one provider for the user.
Path Parameters
cotter_user_id
string
The user's Cotter User ID
provider_name
string
One of: GITHUB
Headers
API_KEY_ID
string
Your API Key ID
API_SECRET_KEY
string
Your API Secret Key
Delete an Access Token from a Specific Provider for a 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.
Path Parameters
cotter_user_id
string
The user's Cotter User ID
provider_name
string
One of: GITHUB
Headers
API_KEY_ID
string
Your API Key ID
API_SECRET_KEY
string
Your API Secret Key
Last updated