Skip to content

Commit

Permalink
✨ expire 시간 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
oaoong committed Nov 29, 2023
1 parent 8fe3b38 commit eb54c5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const RouteCallback = ({ tokenResponse }: RouteCallbackProps) => {

useEffect(() => {
if (tokenResponse?.data) {
let inHour = new Date(new Date().getTime() + 60 * 60 * 1000)
let inHour = new Date()
inHour.setHours(inHour.getHours() + 1)
Cookies.set(
Environment.tokenName(),
tokenResponse?.data?.token?.accessToken,
Expand Down

0 comments on commit eb54c5e

Please sign in to comment.