Skip to content

Commit 0ab656e

Browse files
Improve logging
1 parent ba687a8 commit 0ab656e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/auth.service.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class AuthService {
5252
return;
5353
}
5454

55-
console.warn('Noticed changes to access_token (possibly from another tab), updating isAuthenticated');
55+
console.warn('Noticed changes to access_token (most likely from another tab), updating isAuthenticated');
5656
this.isAuthenticatedSubject$.next(this.oauthService.hasValidAccessToken());
5757

5858
if (!this.oauthService.hasValidAccessToken()) {
@@ -123,7 +123,9 @@ export class AuthService {
123123
//
124124
// Enable this to ALWAYS force a user to login.
125125
// this.oauthService.initImplicitFlow();
126-
126+
//
127+
// Instead, we'll now do this:
128+
console.warn('User interaction is needed to log in, we will wait for the user to manually log in.');
127129
return Promise.resolve();
128130
}
129131

0 commit comments

Comments
 (0)