From 1f83aae76299edebd866f59c6cc1257c443f5732 Mon Sep 17 00:00:00 2001 From: nknguyenhc <87511888+nknguyenhc@users.noreply.github.com> Date: Tue, 20 Feb 2024 21:05:43 +0800 Subject: [PATCH] Update constant name --- src/app/core/services/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/core/services/auth.service.ts b/src/app/core/services/auth.service.ts index 115b8a31..acc2048c 100644 --- a/src/app/core/services/auth.service.ts +++ b/src/app/core/services/auth.service.ts @@ -33,7 +33,7 @@ export enum AuthState { * updating the application state with regards to authentication. */ export class AuthService { - private static readonly DEFAULT_HAS_PRIVATE_PERMISSION = false; + private static readonly DEFAULT_HAS_PERMISSION_TO_PRIVATE_REPOS = false; private static readonly SESSION_NEXT_KEY = 'next'; authStateSource = new BehaviorSubject(AuthState.NotAuthenticated); @@ -79,7 +79,7 @@ export class AuthService { startOAuthIfHasNext() { if (this.hasNext()) { this.logger.info(`AuthService: Start OAuth because there is a next route`); - this.startOAuthProcess(AuthService.DEFAULT_HAS_PRIVATE_PERMISSION); + this.startOAuthProcess(AuthService.DEFAULT_HAS_PERMISSION_TO_PRIVATE_REPOS); } }