pyfedi/app/templates/themes/x_api/js/logout.js
2024-12-11 00:49:18 +00:00

6 lines
190 B
JavaScript

localStorage.removeItem('jwt');
sessionStorage.removeItem('jwt');
const url = new URL(window.location.href);
const baseUrl = `${url.protocol}//${url.host}`;
window.location.href = baseUrl;