Unit test token login flow in MatrixChat (#11143)

* test tokenlogin

* whitespace

* tidy

* strict
This commit is contained in:
Kerry 2023-06-28 11:45:11 +12:00 committed by GitHub
parent 9704c9fc13
commit a87362a048
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 178 additions and 7 deletions

View file

@ -664,7 +664,7 @@ async function persistCredentials(credentials: IMatrixClientCreds): Promise<void
if (credentials.accessToken) {
localStorage.setItem("mx_has_access_token", "true");
} else {
localStorage.deleteItem("mx_has_access_token");
localStorage.removeItem("mx_has_access_token");
}
if (credentials.pickleKey) {