gopidesupavan commented on code in PR #47432:
URL: https://github.com/apache/airflow/pull/47432#discussion_r1991626299


##########
airflow/auth/managers/simple/ui/src/login/Login.tsx:
##########
@@ -40,7 +40,10 @@ export const Login = () => {
     const onSuccess = (data: LoginResponse) => {
         // Redirect to appropriate page with the token
         const next = searchParams.get("next")
-        globalThis.location.replace(`${next ?? ""}?token=${data.jwt_token}`);
+
+        localStorage.setItem("token", JSON.stringify(data.jwt_token));

Review Comment:
   Yeah previously it was failing to parse so added that, i think now this is 
not required.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to