fix: encode JWT in 2FA redirect URL to prevent invalid header error (#25331)
Co-authored-by: Pallav <[email protected]>
This commit is contained in:
1 parent
cd74f292ee
commit
a3c0d06c13
1 file changed
+1
-1
@@ -97,7 +97,7 @@ const usernameSlug = (username: string) => `${slugify(username)}-${randomString(
|
||||
const getDomainFromEmail = (email: string): string => email.split("@")[1];
|
||||
|
||||
const loginWithTotp = async (email: string) =>
|
||||
`/auth/login?totp=${await (await import("./signJwt")).default({ email })}`;
|
||||
`/auth/login?totp=${encodeURIComponent(await (await import("./signJwt")).default({ email }))}`;
|
||||
|
||||
type UserTeams = {
|
||||
teams: (Membership & {
|
||||
|
||||
Reference in new issue
Block a user