Skip to content

Commit

Permalink
feat(schemas): add LogtoJwtTokenKeyType
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyYe committed Mar 5, 2024
1 parent 92a04f0 commit be518dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/schemas/src/types/logto-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ export const logtoOidcConfigGuard: Readonly<{
[LogtoOidcConfigKey.CookieKeys]: oidcConfigKeyGuard.array(),
});

/**
* Logto JWT customizer token types, used in REST API routes.
*/
export enum LogtoJwtTokenKeyType {
AccessToken = 'access-token',
ClientCredentials = 'client-credentials',
}

export enum LogtoJwtTokenKey {
AccessToken = 'jwt.accessToken',
ClientCredentials = 'jwt.clientCredentials',
Expand Down

0 comments on commit be518dc

Please sign in to comment.