Skip to content

Commit e5e1f7d

Browse files
Allow automatic refresh to use iframe for code flow
1 parent 51e3197 commit e5e1f7d

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
@@ -195,7 +195,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
195195
}
196196

197197
protected refreshInternal(params, noPrompt) {
198-
if (this.responseType === 'code') {
198+
if (!this.silentRefreshRedirectUri && this.responseType === 'code') {
199199
return this.refreshToken();
200200
} else {
201201
return this.silentRefresh(params, noPrompt);

0 commit comments

Comments
 (0)