Skip to content

Commit

Permalink
fix invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpittman committed Jul 25, 2022
1 parent 012ee9d commit b1c46d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export let getSessionStorage = (
env = getPagesContext(),
options?: CookieOptions
) => {
invariant(!env.SESSION_SECRET, "SESSION_SECRET is not defined");
invariant(!env.KV, "KV namespace, KV, is not defined");
invariant(env.SESSION_SECRET, "SESSION_SECRET is not defined");
invariant(env.KV, "KV namespace, KV, is not defined");

let cookie = createCookie("__session", {
expires,
Expand Down

0 comments on commit b1c46d1

Please sign in to comment.