fix(console): clear storage entry if org is unknown, use zitadel as storage prefix, prettier domain verification (#836)

* fix: intercept wrong org id, zitadel as prefix

* rm constructor

* lint interceptor

* improve verification dialog

* refactor domain verification i18n

* reference preview img
This commit is contained in:
Max Peintner
2020-10-21 11:26:58 +02:00
committed by GitHub
parent b3f68c8f48
commit efcac8e70a
10 changed files with 85 additions and 53 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import { Injectable } from '@angular/core';
import { OAuthStorage } from 'angular-oauth2-oidc';
const STORAGE_PREFIX = 'zitadel';
@Injectable({
providedIn: 'root',
})
export class StorageService implements OAuthStorage {
private storage: Storage = window.sessionStorage;
@@ -28,7 +28,7 @@ export class StorageService implements OAuthStorage {
}
public getPrefixedKey(key: string): string {
return `caos:${key}`;
return `${STORAGE_PREFIX}:${key}`;
}
}