Conform more of the codebase to strict typescript (#10841)
This commit is contained in:
parent
af78a5a2f5
commit
277a3c0146
12 changed files with 89 additions and 60 deletions
|
@ -64,7 +64,11 @@ export default class IdentityAuthClient {
|
|||
|
||||
private writeToken(): void {
|
||||
if (this.tempClient) return; // temporary client: ignore
|
||||
window.localStorage.setItem("mx_is_access_token", this.accessToken);
|
||||
if (this.accessToken) {
|
||||
window.localStorage.setItem("mx_is_access_token", this.accessToken);
|
||||
} else {
|
||||
window.localStorage.removeItem("mx_is_access_token");
|
||||
}
|
||||
}
|
||||
|
||||
private readToken(): string | null {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue