Skip to content

Commit f42a24d

Browse files
danielroefatfingers23
authored andcommitted
fix: add request lock
1 parent 4c70696 commit f42a24d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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 { useServerSession } from '#server/utils/server-session'
@@ -24,6 +25,7 @@ export default defineEventHandler(async event => {
2425
stateStore,
2526
sessionStore,
2627
clientMetadata,
28+
requestLock: getOAuthLock(),
2729
})
2830

2931
if (!query.code) {

0 commit comments

Comments
 (0)