Get Tokens during Authentication
https://www.cotter.app/api/v0/verify/get_identity?oauth_token=truecurl -XPOST \
-H 'Content-type: application/json' \
-H 'API_KEY_ID: <api_key_id>' \
-d '{
"code_verifier": "<code_verifier>",
"authorization_code": "<authorization_code>",
"challenge_id": <challenge_id>,
"redirect_url": "<redirect_url>"
}' 'https://www.cotter.app/api/v0/verify/get_identity?oauth_token=true'{
"identifier": {
"ID": "2ddc26f6-f392-4d7e-8607-1f57d41da045",
"created_at": "2020-04-05T04:50:55.931771Z",
"deleted_at": null,
"device_name": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1",
"device_type": "BROWSER",
"expiry": "2020-05-07T03:34:58.729745Z",
"identifier": "[email protected]",
"identifier_type": "EMAIL",
"public_key": "FvozWVGHo9lWE5ilLOF...",
"timestamp": "2020-04-07T03:34:58.729745Z",
"update_at": "2020-04-07T03:34:58.733779Z"
},
"token": { // You can ignore this if you're using the oauth_token
"expire_at": "1588822498",
"identifier": "[email protected]",
"identifier_id": "2ddc26f6-f392-4d7e-8607-1f57d41da045",
"identifier_type": "EMAIL",
"receiver": "<your API KEY ID>",
"signature": "XIbztHLKQSqzbnuBgyC+GfAK...",
"timestamp": "1586230498"
},
"oauth_token": { // π NEW OAuth Tokens π
"access_token": "eyJhbGciOiJFUz...",
"auth_method": "OTP",
"expires_in": 3600,
"id_token": "eyJhbGciOiJFUz...",
"refresh_token": "94:qv2SAJN5u2u...",
"token_type": "Bearer"
}
}Getting and Removing tokens from the Storage
Storing and Removing TokensRenewing Expired Tokens
Renewing Expired TokensLast updated