Sign In with Device
Our Flutter SDK offers the easiest way to integrate Cotter's Sign In with Device. You can simply call a function and it does most of the heavy lifting and authentication for you.
What you're building

Import Cotter as a dependency
Step 1: Import and Initialize Cotter
Step 2: Make a Sign Up Function
(Optional) You can also verify the user's email or phone number at this step
Add Email/Phone VerificationStep 3: Make a Login Function
To get the Logged-in User Info and Access Token, follow this section:
Getting OAuth TokensGetting the Logged-in UserLogging-in From a Trusted Device
Logging-in From a Non-Trusted Device
Validating Cotter's Access Token
Verifying JWT Tokensπ You're done!
Add Email/Phone Verification
Add Email/Phone VerificationGetting the Logged-in User
Getting the Logged-in UserGetting OAuth Tokens
Getting OAuth TokensLast updated