1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

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
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) {