tokenLogin static method

  1. @Deprecated('Cannot test')
Future<Login> tokenLogin(
  1. String token
)

Login with a refresh token as token

Implementation

@Deprecated('Cannot test')
static Future<Login> tokenLogin(String token) async {
  final tokens = await api.refreshToken(token);
  return Login(
    Platform.mobile,
    tokens.accessToken,
    tokens.refreshToken,
    User(int.parse(JWToken(token).userId)),
  );
}