From d0be1b733bc80a37bc6e1fa67583e4ee76cbf5bd Mon Sep 17 00:00:00 2001 From: Brecht Carlier Date: Thu, 5 Mar 2020 22:49:06 +0100 Subject: [PATCH] Fixed not working silent refresh when using 'code' window.location.search is "" when using the iframe. The querySource seems to have the correct value --- projects/lib/src/oauth-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/lib/src/oauth-service.ts b/projects/lib/src/oauth-service.ts index 7f0a204d..a368615b 100644 --- a/projects/lib/src/oauth-service.ts +++ b/projects/lib/src/oauth-service.ts @@ -1455,7 +1455,7 @@ export class OAuthService extends AuthConfig implements OnDestroy { options.customHashFragment.substring(1) : window.location.search; - const parts = this.getCodePartsFromUrl(window.location.search); + const parts = this.getCodePartsFromUrl(querySource); const code = parts['code']; const state = parts['state'];