(changeUser: boolean = false)
| 118 | |
| 119 | // Logout and optionally redirect to change user |
| 120 | export 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 | } |
no test coverage detected