Skip to content

Commit

Permalink
Update constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
nknguyenhc committed Feb 20, 2024
1 parent fcb47e0 commit 1f83aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 1f83aae

Please sign in to comment.