This repository was archived by the owner on May 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,9 @@ export class AuthenticationComponent extends GraphExplorerComponent {
2626
2727 public authInfo = this . explorerValues . authentication ;
2828
29- constructor ( private sanitizer : DomSanitizer , private apiService : GraphService ,
30- private changeDetectorRef : ChangeDetectorRef ) {
29+ constructor (
30+ private sanitizer : DomSanitizer , private apiService : GraphService ,
31+ private changeDetectorRef : ChangeDetectorRef ) {
3132 super ( ) ;
3233 this . acquireTokenCallBack = this . acquireTokenCallBack . bind ( this ) ;
3334 this . acquireTokenErrorCallBack = this . acquireTokenErrorCallBack . bind ( this ) ;
@@ -161,7 +162,7 @@ export class AuthenticationComponent extends GraphExplorerComponent {
161162 * We only want to change the authentication status to anonymous for errors other than those
162163 * that require interation from the user.
163164 */
164- if ( ! requiresInteraction ( error . errorCode ) ) {
165+ if ( ! requiresInteraction ( error . errorCode ) || error . errorCode !== 'acquiretoken_progress_error' ) {
165166 AppComponent . explorerValues . authentication . status = 'anonymous' ;
166167 }
167168 }
You can’t perform that action at this time.
0 commit comments