diff --git a/daily-thought-frontend/src/pages/signIn.tsx b/daily-thought-frontend/src/pages/signIn.tsx index e3aa4975d499862f729ccc721280c893be5fb8f3..da00b299df5fbcbe2cdc964350bb257e97fc7b98 100644 --- a/daily-thought-frontend/src/pages/signIn.tsx +++ b/daily-thought-frontend/src/pages/signIn.tsx @@ -24,11 +24,11 @@ const SignIn = () => { const response = await fetch(endpoint, options) const result = await response.json() - console.log(result.error) - if(result.error !== undefined){ setError(result.error) - } else { + } else { + sessionStorage.setItem('username', result.username) + sessionStorage.setItem('token', result.token) Router.push("/feed") } }