toInterface static method
convert a AuthToken to a AuthTokenInterface
Implementation
static AuthTokenInterface toInterface(
AuthToken authToken,
) {
final user = authToken.user;
return AuthTokenInterface(
idToken: authToken.idToken,
accessToken: authToken.accessToken,
refreshToken: authToken.refreshToken,
tokenType: authToken.tokenType,
expiresIn: authToken.expiresIn,
user: user != null ? OpenIdUserConverter.toInterface(user) : null,
);
}