Switch to localStorage for JWT handling and simplify case transformation logic in LoginComponent. Update app.config.ts and related services to align with the new token management method. Mark JwtClaims interface as exported.
This commit is contained in:
@@ -6,6 +6,7 @@ import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||
import {HeaderComponent} from '@header/header.component';
|
||||
import {CopyIpComponent} from '@shared-components/copy-ip/copy-ip.component';
|
||||
import {RouterLink} from '@angular/router';
|
||||
import {JwtHelperService} from '@auth0/angular-jwt';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
@@ -16,6 +17,9 @@ import {RouterLink} from '@angular/router';
|
||||
RouterLink,
|
||||
NgOptimizedImage
|
||||
],
|
||||
providers: [
|
||||
{provide: JwtHelperService, useFactory: () => new JwtHelperService()}
|
||||
],
|
||||
selector: 'app-home',
|
||||
templateUrl: './home.component.html',
|
||||
styleUrl: './home.component.scss'
|
||||
|
||||
Reference in New Issue
Block a user