refreshToken property

String? refreshToken

Implementation

String? get refreshToken => _refreshToken;
void refreshToken=(String? value)

Set the refresh token

If the token is invalid, one of those Exception will be throw:

  • Invalid JWT format: Expected 3 parts, got [number of parts]
  • Unsupported signature algorithm: [algorithm]
  • Token expired at [DateTime]
  • Token issued in the future at [DateTime]

Implementation

set refreshToken(String? value) {
  if (value != null) {
    _verifyJWTFormat(value);
  }
  _refreshToken = value;
}