File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -160,12 +160,13 @@ export class OAuthService extends AuthConfig {
160160 * Will setup up silent refreshing for when the token is
161161 * about to expire.
162162 * @param params Additional parameter to pass
163+ * @param noPrompt True if `prompt=none` should be added to the token refresh url
163164 */
164- public setupAutomaticSilentRefresh ( params : object = { } , listenTo ?: 'access_token' | 'id_token' | 'any' ) {
165+ public setupAutomaticSilentRefresh ( params : object = { } , listenTo ?: 'access_token' | 'id_token' | 'any' , noPrompt = true ) {
165166 this . events . pipe ( filter ( e => e . type === 'token_expires' ) ) . subscribe ( e => {
166167 const event = e as OAuthInfoEvent ;
167168 if ( listenTo == null || listenTo === 'any' || event . info === listenTo ) {
168- this . silentRefresh ( params ) . catch ( _ => {
169+ this . silentRefresh ( params , noPrompt ) . catch ( _ => {
169170 this . debug ( 'Automatic silent refresh did not work' ) ;
170171 } ) ;
171172 }
You can’t perform that action at this time.
0 commit comments