toInterface static method

AuthTokenInterface toInterface(
  1. AuthToken authToken
)

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