Finish the sign-out: wait for the fade and the device-session release, then
clear the session and hard-reload to the welcome screen (client-side via
navigate in an offline browser, see above). Module-level and
idempotent — an overlay that unmounts (or remounts) mid-fade can't cancel it,
so a set logout flag always ends on the welcome screen, never on the
faded-out (blank) overlay.
Parameters
Optionalnavigate: (path:string)=>void
client-side navigation, used only in an offline browser.
Finish the sign-out: wait for the fade and the device-session release, then clear the session and hard-reload to the welcome screen (client-side via
navigatein an offline browser, see above). Module-level and idempotent — an overlay that unmounts (or remounts) mid-fade can't cancel it, so a set logout flag always ends on the welcome screen, never on the faded-out (blank) overlay.