mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-20 11:58:47 +00:00
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:
@@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user