Skip to content

Commit

Permalink
Moved the JWT storage injection token at app level
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Oct 14, 2024
1 parent 8c4abc8 commit 5e3b735
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 38 deletions.
5 changes: 3 additions & 2 deletions app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations';
import { AuthGuard, AuthModule, CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
import { AuthGuard, AuthModule, CoreModule, JWT_STORAGE_SERVICE, StorageService, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
import { AppService } from '@alfresco/aca-shared';

import { AppExtensionsModule } from './extensions.module';
Expand Down Expand Up @@ -111,7 +111,8 @@ registerLocaleData(localeSv);
name: 'app',
source: 'assets'
}
}
},
{ provide: JWT_STORAGE_SERVICE, useClass: StorageService }
],
declarations: [AppComponent],
bootstrap: [AppComponent]
Expand Down
60 changes: 30 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
},
"private": true,
"dependencies": {
"@alfresco/adf-content-services": "7.0.0-alpha.4-11234797160",
"@alfresco/adf-core": "7.0.0-alpha.4-11234797160",
"@alfresco/adf-extensions": "7.0.0-alpha.4-11234797160",
"@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.4-11234797160",
"@alfresco/js-api": ">=8.0.0-alpha.4-11234797160",
"@alfresco/adf-content-services": "7.0.0-alpha.4-11327773511",
"@alfresco/adf-core": "7.0.0-alpha.4-11327773511",
"@alfresco/adf-extensions": "7.0.0-alpha.4-11327773511",
"@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.4-11327773511",
"@alfresco/js-api": ">=8.0.0-alpha.4-11327773511",
"@angular/animations": "16.2.9",
"@angular/cdk": "16.2.9",
"@angular/common": "16.2.9",
Expand Down Expand Up @@ -62,7 +62,7 @@
"zone.js": "0.13.3"
},
"devDependencies": {
"@alfresco/adf-cli": "7.0.0-alpha.4-11234797160",
"@alfresco/adf-cli": "7.0.0-alpha.4-11327773511",
"@angular-devkit/build-angular": "16.2.9",
"@angular-devkit/core": "16.2.9",
"@angular-devkit/schematics": "16.2.9",
Expand Down

0 comments on commit 5e3b735

Please sign in to comment.