OAuth Tokens API
HTTP Requests for handling Access Token, ID Token, and Refresh Tokens

Renewing Tokens using Refresh Token

If Cotter's SDK doesn't support auto renewal, or if you you need to renew the tokens manually, you can make an HTTP request to Cotter's Server to renew the tokens using a refresh_token.
1
curl -XPOST \
2
-H 'API_KEY_ID: <YOUR API KEY ID>' \
3
-H "Content-type: application/json" \
4
-d '{
5
"grant_type": "refresh_token",
6
"refresh_token": "<REFRESH_TOKEN>"
7
}' 'https://www.cotter.app/api/v0/token/<YOUR API KEY ID>'
Copied!
post
https://www.cotter.app
/api/v0/token/<YOUR API KEY ID>
Get Token using Refresh Token

Refresh Token Rotation

Note that this returns a new refresh_token and invalidates the old refresh_token
Last modified 1yr ago