Getting the Tokens
Getting an access token from Cotter's SDK is as easy as setting a variable to `true`.
Getting Cotter's OAuth Tokens is very easy using our current authentication methods. You should automatically receive the oauth_token
whenever a user is succesfully authenticated, either using magic link, OTP, trusted device, or WebAuthn.
You will get an oauth_token
object in the JSON response with all the tokens:
Getting Tokens using the SDK
There are 3 places in the existing SDK where you can receive access tokens:
During Email/Phone VerificationDuring AuthenticationDuring enrolling Trusted DevicesGetting Tokens using HTTP Request
You can also call Cotter's API to get the tokens.
Using the Refresh TokenLast updated