MCPcopy Create free account
hub / github.com/error311/FileRise / clearWelcomeFlags

Function clearWelcomeFlags

public/js/appCore.js:199–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 ========================= */
198export function triggerLogout() {
199 const clearWelcomeFlags = () => {
200 try {
201 // one-per-tab toast guard
202 sessionStorage.removeItem('__fr_welcomed');
203 // if you also used the per-user (all-tabs) guard, clear that too:
204 const u = localStorage.getItem('username') || '';
205 if (u) localStorage.removeItem(`__fr_welcomed_${u}`);
206 } catch (e) { }
207 };
208
209 _nativeFetch(withBase("/api/auth/logout.php"), {
210 method: "POST",

Callers 1

triggerLogoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected