Dont's show blank screen

This commit is contained in:
Willem Dantuma 2020-12-09 20:35:01 +01:00
parent 1a8bc43c60
commit 200f3e95eb

View File

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