Skip to content

Commit

Permalink
♻️ : #324 - 쿠키 저장 시간 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdl60 committed Dec 27, 2023
1 parent fc13b61 commit 2fc57fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/(headerless)/oauth/hooks/useOauthPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default function useOauthPage() {
.then((response) => {
//TODO: 로그인 실패 처리 필요, maxAge 상수화, await 와 then을같이 쓰는게 맞나?
const { data } = response;
setCookie('auth', data, { maxAge: 604800 });
//TODO: 테스트를 위해 5분
setCookie('auth', data, { maxAge: 300 });
window.location.replace('/home');
})
.catch(() => {
Expand Down

0 comments on commit 2fc57fa

Please sign in to comment.