getValidAuthToken method

Future<String> getValidAuthToken()

Returns the auth token for the currently authenticated user. If the stored auth token is invalid, this method will use the refresh token to get and save a new auth token.

Returns: A Future<String?> representing the user's auth token, Throws: PassageError

Implementation

Future<String> getValidAuthToken() {
  return PassageFlutterPlatform.instance.getValidAuthToken();
}