Timothy Jaeryang Baek 1 month ago
parent
commit
d9f97c832c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/routes/auth/+page.svelte

+ 3 - 3
src/routes/auth/+page.svelte

@@ -52,7 +52,7 @@
 			}
 
 			goto(redirectPath);
-			sessionStorage.removeItem('redirectPath');
+			localStorage.removeItem('redirectPath');
 		}
 	};
 
@@ -125,7 +125,7 @@
 		}
 
 		localStorage.token = token;
-		await setSessionUser(sessionUser, sessionStorage.getItem('redirectPath') || null);
+		await setSessionUser(sessionUser, localStorage.getItem('redirectPath') || null);
 	};
 
 	let onboarding = false;
@@ -159,7 +159,7 @@
 			goto(redirectPath || '/');
 		} else {
 			if (redirectPath) {
-				sessionStorage.setItem('redirectPath', redirectPath);
+				localStorage.setItem('redirectPath', redirectPath);
 			}
 		}
 		await oauthCallbackHandler();