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 ae0e5d5 commit ca67066Copy full SHA for ca67066
1 file changed
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 type { UserSession } from '#shared/schemas/userSession'
@@ -22,6 +23,7 @@ export default defineEventHandler(async event => {
22
23
stateStore,
24
sessionStore,
25
clientMetadata,
26
+ requestLock: getOAuthLock(),
27
})
28
29
if (!query.code) {
0 commit comments