@auth0/nextjs-auth0
Version:
Auth0 Next.js SDK
22 lines (21 loc) • 1.03 kB
JavaScript
export var SUBJECT_TOKEN_TYPES;
(function (SUBJECT_TOKEN_TYPES) {
/**
* Indicates that the token is an OAuth 2.0 refresh token issued by the given authorization server.
*
* @see {@link https://datatracker.ietf.org/doc/html/rfc8693#section-3-3.4 RFC 8693 Section 3-3.4}
*/
SUBJECT_TOKEN_TYPES["SUBJECT_TYPE_REFRESH_TOKEN"] = "urn:ietf:params:oauth:token-type:refresh_token";
/**
* Indicates that the token is an OAuth 2.0 access token issued by the given authorization server.
*
* @see {@link https://datatracker.ietf.org/doc/html/rfc8693#section-3-3.2 RFC 8693 Section 3-3.2}
*/
SUBJECT_TOKEN_TYPES["SUBJECT_TYPE_ACCESS_TOKEN"] = "urn:ietf:params:oauth:token-type:access_token";
})(SUBJECT_TOKEN_TYPES || (SUBJECT_TOKEN_TYPES = {}));
/**
* Grant type for Custom Token Exchange as per RFC 8693.
*
* @see {@link https://datatracker.ietf.org/doc/html/rfc8693 RFC 8693}
*/
export const GRANT_TYPE_CUSTOM_TOKEN_EXCHANGE = "urn:ietf:params:oauth:grant-type:token-exchange";