mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2025-12-23 22:18:19 -05:00
fix login with oauth button not displaying (#311)
fixes oauth button not displaying
This commit is contained in:
committed by
GitHub
parent
c7c6158a3f
commit
e1a7c5fe5d
@@ -3,5 +3,5 @@ import client from '$lib/api';
|
||||
|
||||
export const load: LayoutLoad = async ({ fetch }) => {
|
||||
const { data } = await client.GET('/api/v1/auth/metadata', { fetch: fetch });
|
||||
return { oauthProviders: data };
|
||||
return { loginData: data };
|
||||
};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import LoginCard from '$lib/components/login-card.svelte';
|
||||
import { page } from '$app/state';
|
||||
|
||||
let oauthProviders: string[] = $derived(page.data.oauthProviders);
|
||||
import type { components } from '$lib/api/api';
|
||||
let loginMetaData: components['schemas']['AuthMetadata'] = $derived(page.data.loginData);
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
@@ -14,5 +14,5 @@
|
||||
</svelte:head>
|
||||
|
||||
<main>
|
||||
<LoginCard oauthProviderNames={oauthProviders} />
|
||||
<LoginCard oauthProviderNames={loginMetaData.oauth_providers} />
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user