From e00bf6b789fd2bc244c2d31c17678e4bd5eef5c5 Mon Sep 17 00:00:00 2001 From: Art Date: Sun, 12 Sep 2021 12:36:22 +0300 Subject: [PATCH] 106. Get token from local storage (#12) --- .../src/app/service/authentication.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/support-portal-frontend/src/app/service/authentication.service.ts b/support-portal-frontend/src/app/service/authentication.service.ts index 72d0bda..07346c6 100644 --- a/support-portal-frontend/src/app/service/authentication.service.ts +++ b/support-portal-frontend/src/app/service/authentication.service.ts @@ -57,4 +57,8 @@ export class AuthenticationService { return JSON.parse(userJson!); } + public getToken(): string | null { + return this.token; + } + }