Skip to content

Commit ca67066

Browse files
committed
fix: add request lock
1 parent ae0e5d5 commit ca67066

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

server/api/auth/atproto.get.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Agent } from '@atproto/api'
22
import { NodeOAuthClient } from '@atproto/oauth-client-node'
33
import { createError, getQuery, sendRedirect } from 'h3'
4+
import { getOAuthLock } from '#server/utils/atproto/lock'
45
import { useOAuthStorage } from '#server/utils/atproto/storage'
56
import { SLINGSHOT_HOST } from '#shared/utils/constants'
67
import type { UserSession } from '#shared/schemas/userSession'
@@ -22,6 +23,7 @@ export default defineEventHandler(async event => {
2223
stateStore,
2324
sessionStore,
2425
clientMetadata,
26+
requestLock: getOAuthLock(),
2527
})
2628

2729
if (!query.code) {

0 commit comments

Comments
 (0)