getToken static method

  1. @Deprecated('Use fetchToken instead')
Future<String?> getToken({
  1. String decrypter(
    1. String ciphertext
    )?,
})

Returns a token for remote access.

decrypter When the old tokens are read from local storage, they are decrypted. This parameter allows you to provide your own decryption method. This will be used in addition to the default decryption method. This will be performed after the default decryption method.

If the token is not found, returns null.

May throw ExpiredAccessTokenException if the token is expired. If this happens, refresh the token with refreshRemoteToken.

Implementation

@Deprecated('Use fetchToken instead')
static Future<String?> getToken({
  String Function(String ciphertext)? decrypter,
}) async =>
    fetchToken(decrypter: decrypter);