Skip to content

Commit

Permalink
chore: update core dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyYe committed Mar 19, 2024
1 parent 88ace80 commit 30ae906
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@logto/cloud": "0.2.5-4ef0b45",
"@logto/cloud": "0.2.5-ceb63ed",
"@silverhand/eslint-config": "5.0.0",
"@silverhand/ts-config": "5.0.0",
"@types/debug": "^4.1.7",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/routes/logto-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ export default function logtoConfigRoutes<T extends AuthedRouter>(
/**
* Code 400 indicates Zod errors in cloud service (data type does not match expectation, can be either request body or response body).
* Code 422 indicates syntax errors in cloud service.
* Code 500 indicates internal server errors in cloud service.
*/
status: [200, 400, 422],
status: [200, 400, 422, 500],
}),
async (ctx, next) => {
const {
Expand Down
12 changes: 0 additions & 12 deletions packages/schemas/src/types/jwt-customizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ export const customJwtFetcherGuard = jwtCustomizerGuard

export type CustomJwtFetcher = z.infer<typeof customJwtFetcherGuard>;

/**
* This guard is for testing use (request body guard), renamed previous `token` and `context`
* fields (in `customJwtFetcherGuard`) to `tokenSample` and `contextSample`, which can bring
* convenience to the testing use case.
*/
export const customJwtTesterGuard = customJwtFetcherGuard
.pick({ script: true, envVars: true })
.extend({
tokenSample: jsonObjectGuard,
contextSample: jsonObjectGuard.optional(),
});

export enum LogtoJwtTokenPath {
AccessToken = 'access-token',
ClientCredentials = 'client-credentials',
Expand Down
17 changes: 15 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30ae906

Please sign in to comment.