Refactor: Oauth콜백 로컬 -> 세션 스토리지로 변경

This commit is contained in:
정현조 2024-09-12 10:59:50 +09:00
parent b080da3549
commit 04ba6cf258

View File

@ -13,7 +13,7 @@ export default function OAuthCallback() {
if (accessToken) { if (accessToken) {
setLoggedIn(true, accessToken); setLoggedIn(true, accessToken);
localStorage.setItem('accessToken', accessToken); sessionStorage.setItem('accessToken', accessToken);
fetchProfileApi() fetchProfileApi()
.then((data) => { .then((data) => {