Skip to content

Commit

Permalink
fix: verify-key-status-codes-docs (unkeyed#2244)
Browse files Browse the repository at this point in the history
* fix:  verify-key-status-codes-docs

* fix: description

* Update apps/api/src/routes/v1_keys_verifyKey.ts

Co-authored-by: Andreas Thomas <[email protected]>

* Update apps/api/src/routes/v1_keys_verifyKey.ts

---------

Co-authored-by: Andreas Thomas <[email protected]>
  • Loading branch information
Pranavtej and chronark authored Oct 15, 2024
1 parent c6373b4 commit a8b7cd6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/api/src/routes/v1_keys_verifyKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ Possible values are:
- DISABLED: the key is disabled
- INSUFFICIENT_PERMISSIONS: you do not have the required permissions to perform this action
- EXPIRED: The key was only valid for a certain time and has expired.
These are validation codes, the HTTP status will be 200.
`,
}),
enabled: z.boolean().optional().openapi({
Expand Down Expand Up @@ -342,10 +344,10 @@ export const registerV1KeysVerifyKey = (app: App) =>
code: val.valid ? ("VALID" as const) : val.code,
identity: val.identity
? {
id: val.identity.id,
externalId: val.identity.externalId,
meta: val.identity.meta ?? {},
}
id: val.identity.id,
externalId: val.identity.externalId,
meta: val.identity.meta ?? {},
}
: undefined,
};
c.executionCtx.waitUntil(
Expand Down

0 comments on commit a8b7cd6

Please sign in to comment.