TokenPersistenceCallback typedef

TokenPersistenceCallback = Future<void> Function(String? token)

Callback for persisting or clearing the auth token.

Implement this to store the token in secure storage (e.g. flutter_secure_storage).

Implementation

typedef TokenPersistenceCallback = Future<void> Function(String? token);