isTokenSavedLocally method

  1. @override
Future<bool> isTokenSavedLocally()
override

Checks if the access token is saved locally.

Returns true if the token is found in secure storage, otherwise false.

Implementation

@override
Future<bool> isTokenSavedLocally() async {
  final String? tokenResponseJson =
      await _storage.read(key: tokenResponseKey);
  return (tokenResponseJson != null);
}