clear method

Future<void> clear()

Clears the current authentication state (removes access token).

This method signs out the current user by removing their access token from local storage. After calling this method, the user will need to authenticate again to access protected resources.

Example

// Sign out the current user
await calljmp.users.auth.clear();
print('User signed out successfully');

Implementation

Future<void> clear() async {
  await CalljmpStore.instance.delete(CalljmpStoreKey.accessToken);
}