mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 11:56:25 +02:00
merge dev
This commit is contained in:
parent
101dd5745c
commit
532f0039d5
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ const TokenHandler = ({
|
|||
}
|
||||
// Clear the flag for future logins
|
||||
sessionStorage.removeItem("login_success_tracked");
|
||||
|
||||
|
||||
// Store token in localStorage using both methods for compatibility
|
||||
localStorage.setItem(storageKey, token);
|
||||
setBearerToken(token);
|
||||
|
|
@ -56,7 +56,7 @@ const TokenHandler = ({
|
|||
// Use the saved path if available, otherwise use the default redirectPath
|
||||
const finalRedirectPath = savedRedirectPath || redirectPath;
|
||||
|
||||
// Use hard navigation to clear all React/jotai state from previous session
|
||||
// Redirect to the appropriate path
|
||||
window.location.href = finalRedirectPath;
|
||||
} catch (error) {
|
||||
console.error("Error storing token in localStorage:", error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue