Signing a User Out
This page shows you how to log your users out of your application
Last updated
This page shows you how to log your users out of your application
We provide a simple logout function that signs out the currently logged in user. Here's how to use it:
Cotter cotter = new Cotter(apiKeyID: YOUR_API_KEY_ID);
void yourLogoutFunction() async {
await cotter.logOut();
_goToLoginPage(); // your own logic after logging out
}It clears out OAuth tokens inside the device's secure storage. The cleared out items include:
Access Token
Refresh Token
ID Token
Token Type
Last updated