Skip to content

Commit 617d5e8

Browse files
committed
Fix remove cookie auth
1 parent 1aece3d commit 617d5e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/authentication.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,7 @@ export const checkAuthenticationCookie = (): boolean => {
114114

115115
return matches.length > 0;
116116
};
117+
118+
export const removeCookieAuthentication = () => {
119+
document.cookie = `${COOKIE_NAME_AUTH}=;Max-Age=-99999999`;
120+
};

0 commit comments

Comments
 (0)