Skip to content

Commit f732b14

Browse files
committed
fix: use resolved handle from profile in OAuth callback
1 parent b81eda7 commit f732b14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/api/auth/atproto.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default defineEventHandler(async event => {
8383
try {
8484
const state = decodeOAuthState(event, result.state)
8585
const profile = await getMiniProfile(result.session)
86-
const npmxProfile = await getNpmxProfile(query.handle as string, result.session)
86+
const npmxProfile = await getNpmxProfile(profile.handle, result.session)
8787

8888
await session.update({
8989
public: profile,

0 commit comments

Comments
 (0)