fix: encode JWT in 2FA redirect URL to prevent invalid header error (#25331)
Co-authored-by: Pallav <90088723+Pallava-Joshi@users.noreply.github.com>
This commit is contained in:
co-authored by
Pallav
parent
cd74f292ee
commit
a3c0d06c13
@@ -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