Skip to content

Commit

Permalink
🔨 Fix: 쿠키 유효기간 설정
Browse files Browse the repository at this point in the history
#
  • Loading branch information
qilip committed Nov 6, 2023
1 parent b51bda7 commit 654289e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion stores/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,11 @@ export const useAuthStore = defineStore(
setAccessToken,
};
},
{ persist: true },
{
persist: {
storage: persistedState.cookiesWithOptions({
maxAge: 60 * 60 * 24 * 30, // 30 days
}),
},
},
);

0 comments on commit 654289e

Please sign in to comment.