isAuthorized method

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

Checks if the user is currently authorized.

Returns true if all of the following conditions are met:

  • Authorization header is set
  • JWT token exists in storage
  • Refresh token exists in storage

Implementation

@override
Future<bool> isAuthorized() async {
  return await authHandler.isAuthorized;
}