reviveJwt method Null safety

Future<AngelAuthResult> reviveJwt(
  1. String token,
  2. {String authEndpoint = '/auth'}
)

Shorthand for authenticating via a JWT string.

Implementation

Future<AngelAuthResult> reviveJwt(String token,
    {String authEndpoint = '/auth'}) {
  return authenticate(
      type: 'token',
      credentials: {'token': token},
      authEndpoint: authEndpoint);
}