ProtectedauthorizationReturn extra parameters to be included in the authorization request.
Some OAuth 2.0 providers allow additional, non-standard parameters to be included when requesting authorization. Since these parameters are not standardized by the OAuth 2.0 specification, OAuth 2.0-based authentication strategies can override this function in order to populate these parameters as required by the provider.
ProtectedcreateRefreshes the access token using the provided refresh token.
The refresh token to use for obtaining a new access token.
Optionalaccess: stringAn optional access token to validate if it needs to be refreshed.
The new tokens obtained after refreshing.
ProtectedvalidateOptionaloptions: { audience?: string; refresh: string }
The name of the strategy. This will be used by the Authenticator to identify and retrieve the strategy.