diff --git a/support-portal-frontend/src/app/service/authentication.service.ts b/support-portal-frontend/src/app/service/authentication.service.ts index 4df7ab2..047e82e 100644 --- a/support-portal-frontend/src/app/service/authentication.service.ts +++ b/support-portal-frontend/src/app/service/authentication.service.ts @@ -43,4 +43,7 @@ export class AuthenticationService { this.storage.setItem(this.JWT_TOKEN_STORAGE_KEY, token); } + public addUserToLocalStorage(user: User) { + this.storage.setItem("user", JSON.stringify(user)); + } }