From 6859dfb31b9aa59bed5b18357a5a18555f98bc93 Mon Sep 17 00:00:00 2001 From: Darrel O'Pry Date: Thu, 4 Jun 2020 03:21:05 -0400 Subject: [PATCH] fix: silentlogin and checksession I was forcing a redirect login result. Switch to signinCallback instead of signinRedirectCallback. signinCallbacks checks the login type varaible and calls the appropriate redirect, popup, or silent callback as necessary. --- src/components/OidcContext.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/OidcContext.svelte b/src/components/OidcContext.svelte index d33ff01..b5ecbe7 100644 --- a/src/components/OidcContext.svelte +++ b/src/components/OidcContext.svelte @@ -76,8 +76,8 @@ // if code then login success if (params.has('code')) { - // handle the redirect response. - const response = await oidc.signinRedirectCallback(); + // handle the callback + const response = await oidc.signinCallback(); let state = (response && response.state) || {} // Can be smart here and redirect to original path instead of root const url = state && state.targetUrl ? state.targetUrl : window.location.pathname;