Skip to content

Commit b94bbac

Browse files
committed
Move noPrompt parameter at the end to avoid breaking code
1 parent 8d25e42 commit b94bbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/lib/src/oauth-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class OAuthService extends AuthConfig {
162162
* @param params Additional parameter to pass
163163
* @param noPrompt True if `prompt=none` should be added to the token refresh url
164164
*/
165-
public setupAutomaticSilentRefresh(params: object = {}, noPrompt = true, listenTo?: 'access_token' | 'id_token' | 'any') {
165+
public setupAutomaticSilentRefresh(params: object = {}, listenTo?: 'access_token' | 'id_token' | 'any', noPrompt = true) {
166166
this.events.pipe(filter(e => e.type === 'token_expires')).subscribe(e => {
167167
const event = e as OAuthInfoEvent;
168168
if ( listenTo == null || listenTo === 'any' || event.info === listenTo ) {

0 commit comments

Comments
 (0)