diff --git a/frontend/src/lib/config.ts b/frontend/src/lib/config.ts index 9b85372..101402c 100644 --- a/frontend/src/lib/config.ts +++ b/frontend/src/lib/config.ts @@ -7,3 +7,4 @@ export const google_auth_enabled = import.meta.env.VITE_GOOGLE_AUTH_ENABLED === 'true'; export const github_auth_enabled = import.meta.env.VITE_GITHUB_AUTH_ENABLED === 'true'; export const captcha_enabled = import.meta.env.VITE_CAPTCHA_ENABLED === 'true'; +export const custom_oauth_name = import.meta.env.VITE_CUSTOM_OAUTH_NAME; diff --git a/frontend/src/routes/account/login/oauth_block.svelte b/frontend/src/routes/account/login/oauth_block.svelte new file mode 100644 index 0000000..30b72b5 --- /dev/null +++ b/frontend/src/routes/account/login/oauth_block.svelte @@ -0,0 +1,67 @@ + + + +{#if google_auth_enabled} +
+{/if} +{#if github_auth_enabled} +