mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
refactor: keep origin customJwtFetcherGuard
This commit is contained in:
parent
45a7ee17aa
commit
b2e00df1b9
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
import { z } from 'zod';
|
||||
|
||||
import { Roles, UserSsoIdentities, Organizations } from '../db-entries/index.js';
|
||||
import { mfaFactorsGuard } from '../foundations/index.js';
|
||||
import { jsonObjectGuard, mfaFactorsGuard } from '../foundations/index.js';
|
||||
|
||||
import { jwtCustomizerGuard } from './logto-config/index.js';
|
||||
import { scopeResponseGuard } from './scope.js';
|
||||
|
@ -41,8 +41,8 @@ export const customJwtFetcherGuard = jwtCustomizerGuard
|
|||
.pick({ script: true, envVars: true })
|
||||
.required({ script: true })
|
||||
.extend({
|
||||
token: z.record(z.unknown()),
|
||||
context: z.record(z.unknown()).optional(),
|
||||
token: jsonObjectGuard,
|
||||
context: jsonObjectGuard.optional(),
|
||||
});
|
||||
|
||||
export type CustomJwtFetcher = z.infer<typeof customJwtFetcherGuard>;
|
||||
|
|
Loading…
Reference in a new issue