Logout Button Implemented
This commit is contained in:
@@ -49,6 +49,12 @@ class AuthRepository {
|
||||
_tokenExpiryKey, token.expiresAt.toIso8601String());
|
||||
}
|
||||
|
||||
Future<void> clearAuthTokens() async {
|
||||
await _secureStorage.deleteAll();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Future<AuthToken?> _getAuthToken() async {
|
||||
final accessToken = await _secureStorage.read(_accessTokenKey);
|
||||
final expiryString = await _secureStorage.read(_tokenExpiryKey);
|
||||
|
Reference in New Issue
Block a user