🐛 fix(layout): Remove unnecessary cookie initialization in Logout function
This commit is contained in:
@@ -42,7 +42,6 @@ export function getRedirectUrl() {
|
||||
|
||||
export function Logout() {
|
||||
if (!isBrowser()) return;
|
||||
const cookies = new Cookies(null, { path: '/' });
|
||||
cookies.remove('Authorization');
|
||||
const pathname = location.pathname;
|
||||
if (!['', '/'].includes(pathname)) {
|
||||
|
||||
Reference in New Issue
Block a user