Skip to content

Commit 1fefafd

Browse files
committed
fix(api): 🐛 Set default authorization code expiration time to 10 minutes
1 parent 3f8fa14 commit 1fefafd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/api/routes/oauth/sso/[issuer]/callback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export default apiRoute((app) => {
278278
await db.insert(AuthorizationCodes).values({
279279
clientId: flow.client.id,
280280
code,
281-
expiresAt: new Date(Date.now() + 60 * 1000).toISOString(), // 1 minute
281+
expiresAt: new Date(Date.now() + 10 * 60 * 1000).toISOString(), // 10 minutes
282282
redirectUri: flow.clientRedirectUri ?? undefined,
283283
userId: user.id,
284284
scopes: flow.clientScopes ?? [],

0 commit comments

Comments
 (0)