mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Removed fallback and starting using simple token
This commit is contained in:
@@ -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'
|
||||||
|
Reference in New Issue
Block a user