Skip to content

Commit

Permalink
Fix double decode problem affecting tokens with +
Browse files Browse the repository at this point in the history
  • Loading branch information
ky28059 committed Feb 15, 2025
1 parent f18a9eb commit 4bee937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function Login({ searchParams }: { searchParams: Promise<{
const error = (await searchParams).error;

// Automatically sign in if the `token` search parameter is set.
if (token) return redirect(`/login-handler?token=${token}`)
if (token) return redirect(`/login-handler?token=${encodeURIComponent(token)}`)

return (
<div className="container pt-32 pb-24">
Expand Down

0 comments on commit 4bee937

Please sign in to comment.