OAuthToken.fromTokenResponse constructor
OAuthToken.fromTokenResponse(
- OidcToken response
Implementation
factory OAuthToken.fromTokenResponse(OidcToken response) {
return OAuthToken(
response.accessToken.toString(),
response.refreshToken.toString(),
response.tokenType.toString(),
response
.calculateExpiresAt()!, // Throw an error if there is no access token expiration date
response.scope ?? [],
response.idToken.toString(),
);
}