mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
fix: 🛂 Fix OIDC provider login not showing up when logged out
This commit is contained in:
parent
d68836ffa7
commit
6d879cdf44
|
|
@ -21,6 +21,8 @@ export const useInstanceFromClient = (client: MaybeRef<LysandClient>) => {
|
|||
output.value = res.data;
|
||||
});
|
||||
});
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
export const useTos = (client: MaybeRef<LysandClient>) => {
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue