Skip to content

Commit

Permalink
fix node test
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Jan 17, 2023
1 parent 3ca3594 commit 4f97ed4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export const setCookieAuthentication = (store: Store, agent: Agent) => {
};

export const removeCookieAuthentication = () => {
document.cookie = `${COOKIE_NAME_AUTH}=;Max-Age=-99999999`;
if (typeof document !== 'undefined') {
document.cookie = `${COOKIE_NAME_AUTH}=;Max-Age=-99999999`;
}
};

/** Returns false if the auth cookie is not set / expired */
Expand Down

0 comments on commit 4f97ed4

Please sign in to comment.