From 15bff0c2fed1a7b926166f57d62d5720ebbd833f Mon Sep 17 00:00:00 2001 From: Denis Beklarov Date: Mon, 4 Jun 2018 13:24:41 +0200 Subject: [PATCH] Issue #343 onTokenReceived callback is not called if no iodc after tryLogin() --- projects/lib/src/oauth-service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/lib/src/oauth-service.ts b/projects/lib/src/oauth-service.ts index 7ef9e7f0..66454046 100644 --- a/projects/lib/src/oauth-service.ts +++ b/projects/lib/src/oauth-service.ts @@ -1335,6 +1335,7 @@ export class OAuthService extends AuthConfig { if (this.clearHashAfterLogin && !options.preventClearHashAfterLogin) { location.hash = ''; } + this.callOnTokenReceivedIfExists(options); return Promise.resolve(); }