We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c70696 commit f42a24dCopy full SHA for f42a24d
server/api/auth/atproto.get.ts
@@ -1,6 +1,7 @@
1
import { Agent } from '@atproto/api'
2
import { NodeOAuthClient } from '@atproto/oauth-client-node'
3
import { createError, getQuery, sendRedirect } from 'h3'
4
+import { getOAuthLock } from '#server/utils/atproto/lock'
5
import { useOAuthStorage } from '#server/utils/atproto/storage'
6
import { SLINGSHOT_HOST } from '#shared/utils/constants'
7
import { useServerSession } from '#server/utils/server-session'
@@ -24,6 +25,7 @@ export default defineEventHandler(async event => {
24
25
stateStore,
26
sessionStore,
27
clientMetadata,
28
+ requestLock: getOAuthLock(),
29
})
30
31
if (!query.code) {
0 commit comments