Skip to content

Commit

Permalink
fix discord user transformn
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Sep 29, 2023
1 parent 6a37c5b commit a51e2de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/v2/routes/auth/login-methods/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ export async function discordCallback(c: APIContext): Promise<Response> {
)
}

// @ts-expect-error, this is valid, i don't feel like doing wizardry to make it work
const user = auth.transformDatabaseUser(userWithEmail)
const user = await auth.getUser(userWithEmail.id)
await createKey(user.userId)
await auth.updateUserAttributes(user.userId, {
email_verified: 1,
Expand Down

0 comments on commit a51e2de

Please sign in to comment.