fix(jwt): Fixes parsing JWT in hash as JSON instead of a string (#14760)

This commit is contained in:
Aaron van Meerten
2024-05-17 11:29:11 -05:00
committed by GitHub
parent 5eb4064390
commit 2ed0418bd9
2 changed files with 3 additions and 3 deletions

View File

@@ -564,9 +564,9 @@ export function urlObjectToString(o: { [key: string]: any; }): string | undefine
if (jwt) {
if (hash.length) {
hash = `${hash}&jwt=${jwt}`;
hash = `${hash}&jwt=${JSON.stringify(jwt)}`;
} else {
hash = `#jwt=${jwt}`;
hash = `#jwt=${JSON.stringify(jwt)}`;
}
}