Removed fallback and starting using simple token

This commit is contained in:
VitoAlbano
2024-10-14 12:28:56 +01:00
parent 672fd1e804
commit 892c1a9b88

View File

@@ -17,12 +17,8 @@
import { inject, Injectable, InjectionToken } from '@angular/core'; import { inject, Injectable, InjectionToken } from '@angular/core';
import { OAuthStorage } from 'angular-oauth2-oidc'; import { OAuthStorage } from 'angular-oauth2-oidc';
import { StorageService } from '../../common/services/storage.service';
export const JWT_STORAGE_SERVICE = new InjectionToken<OAuthStorage>('JWT_STORAGE_SERVICE', { export const JWT_STORAGE_SERVICE = new InjectionToken<OAuthStorage>('JWT_STORAGE_SERVICE');
providedIn: 'root',
factory: () => inject(StorageService)
});
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'