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'];