tokenLogin static method
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)),
);
}