Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshschuler committed May 30, 2023
1 parent f836b72 commit 8c4ff94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const store = new CookieStore(Deno.env.get("COOKIE_STORE_SECRET")!);
app.use(Session.initMiddleware(store, {
cookieSetOptions: {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
},
}));

Expand Down
4 changes: 1 addition & 3 deletions frontend/src/stores/profileStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ export const useProfileStore = defineStore("profile", () => {
});

if (response.status !== 200) {
if (response.status === 401) {
await authStore.logout();
}
await authStore.logout();

return;
}
Expand Down

0 comments on commit 8c4ff94

Please sign in to comment.