From 200f3e95eb5a908cc2d971bf385f46faae3351dc Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 9 Dec 2020 20:35:01 +0100 Subject: [PATCH] Dont's show blank screen --- .../src/fm/components/auth-callback/auth-callback.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/common/src/fm/components/auth-callback/auth-callback.component.ts b/projects/common/src/fm/components/auth-callback/auth-callback.component.ts index 74ccef2..a51b5f0 100644 --- a/projects/common/src/fm/components/auth-callback/auth-callback.component.ts +++ b/projects/common/src/fm/components/auth-callback/auth-callback.component.ts @@ -13,6 +13,8 @@ export class AuthCallbackComponent { oauthService$.loadDiscoveryDocument().then(() => { oauthService$.tryLoginCodeFlow().then(() => { router$.navigateByUrl((oauthService$.state && oauthService$.state!="")?decodeURIComponent(oauthService$.state):""); + }).catch(() => { + router$.navigateByUrl("/"); }); }) }