Infinite redirect fix again (#3419)

* override the check method to not care about the id token if we have a valid mealie token

* prevent auto log in with auth check is already good

* fix check

* simplify check logic
This commit is contained in:
Carter
2024-04-04 16:23:33 -05:00
committed by GitHub
parent 1099e30a1d
commit eb1d569e95
2 changed files with 21 additions and 4 deletions

View File

@@ -191,7 +191,7 @@ export default defineComponent({
const oidcProviderName = computed(() => appInfo.value?.oidcProviderName || "OAuth")
whenever(
() => allowOidc.value && oidcRedirect.value && !isCallback() && !isDirectLogin(),
() => allowOidc.value && oidcRedirect.value && !isCallback() && !isDirectLogin() && !$auth.check().valid,
() => oidcAuthenticate(),
{immediate: true}
)