pubspec.yaml
, then run flutter pub get
.lib/main.dart
, then initialize it inside HomePageState
.cotter.signUpWithDevice
and input the user's email. This will create a new user in Cotter and trust the current device to allow logins. This function returns the User object.cotter.signInWithDevice
. If the user is logging-in from a device that they trust, they'll automatically be approved. This function returns the Event object.access_token
, id_token
, and refresh_token
that is securely stored in the device's secure storage. Check how to get these tokens: