mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
fix: 🛂 Fix OIDC provider login not showing up when logged out
This commit is contained in:
parent
d68836ffa7
commit
6d879cdf44
2 changed files with 8 additions and 1 deletions
|
|
@ -97,6 +97,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { LysandClient } from "@lysand-org/client";
|
||||
import { toTypedSchema } from "@vee-validate/zod";
|
||||
import { z } from "zod";
|
||||
|
||||
|
|
@ -116,5 +117,9 @@ const validUrlParameters =
|
|||
params.client_id &&
|
||||
params.scope;
|
||||
|
||||
const ssoConfig = useSSOConfig();
|
||||
const instance = useInstanceFromClient(
|
||||
new LysandClient(new URL(useBaseUrl().value)),
|
||||
);
|
||||
|
||||
const ssoConfig = computed(() => instance.value?.sso);
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue