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:
stijn committed 2025-07-06 19:10:17 +02:00
1 parent 54e747118c
commit 04310e1cce
6 files changed
+28 -43

No files matched your search

@@ -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'