File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export class AuthConfig {
217
217
public nonceStateSeparator ? = ';' ;
218
218
219
219
/**
220
- * Set this to true to use HTTP BASIC auth for password flow
220
+ * Set this to true to use HTTP BASIC auth for AJAX calls
221
221
*/
222
222
public useHttpBasicAuth ? = false ;
223
223
Original file line number Diff line number Diff line change @@ -427,6 +427,15 @@ export class OAuthService extends AuthConfig implements OnDestroy {
427
427
} ) ;
428
428
}
429
429
430
+ /**
431
+ * Stops timers for automatic refresh.
432
+ * To restart it, call setupAutomaticSilentRefresh again.
433
+ */
434
+ public stopAutomaticRefresh ( ) {
435
+ this . clearAccessTokenTimer ( ) ;
436
+ this . clearIdTokenTimer ( ) ;
437
+ }
438
+
430
439
protected clearAccessTokenTimer ( ) : void {
431
440
if ( this . accessTokenTimeoutSubscription ) {
432
441
this . accessTokenTimeoutSubscription . unsubscribe ( ) ;
You can’t perform that action at this time.
0 commit comments