MCPcopy Index your code
hub / github.com/watsonbox/exportify / logout

Function logout

src/auth.ts:120–126  ·  view source on GitHub ↗
(changeUser: boolean = false)

Source from the content-addressed store, hash-verified

118
119// Logout and optionally redirect to change user
120export function logout(changeUser: boolean = false): void {
121 clearAccessToken()
122 const url = changeUser
123 ? `${window.location.pathname}?change_user=true`
124 : window.location.pathname
125 window.location.href = url
126}

Callers 1

TopMenuClass · 0.90

Calls 1

clearAccessTokenFunction · 0.85

Tested by

no test coverage detected