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 b2e167e commit 62e4056Copy full SHA for 62e4056
1 file changed
server/api/auth/atproto.get.ts
@@ -76,7 +76,12 @@ export default defineEventHandler(async event => {
76
message: 'Handle not provided in query',
77
})
78
}
79
- return "this api works"
+
80
+ const redirectUrl = await atclient.authorize(handle, {
81
+ scope,
82
+ prompt: create ? 'create' : undefined,
83
+ })
84
+ return redirectUrl
85
} catch (error) {
86
const message = error instanceof Error ? error.message : 'Authentication failed.'
87
0 commit comments