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("/"); }); }) }