Skip to content

Commit

Permalink
+-upd: pass nothing in auth:completed event
Browse files Browse the repository at this point in the history
nicitaacom committed Nov 25, 2023
1 parent 771a3aa commit 90ef6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/(auth)/auth/callback/credentials/route.ts
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ export async function GET(request: Request) {
// Trigger pusher to 'auth:completed' to show in another tab message like 'Authencication completed - thank you'
// TODO - check it - because might possible error with setting data in localstorage
// I mean it localstorage will be updated only on 'auth completed you may close this page' but not in actual first page
pusherServer.trigger(email, "auth:completed", response.data.user)
pusherServer.trigger(email, "auth:completed", null)

return NextResponse.redirect(
`${requestUrl.origin}/auth/completed?code=${code}

0 comments on commit 90ef6cb

Please sign in to comment.