feat(#29): use magic link to sign in

This commit is contained in:
OllyNicholass
2024-09-17 21:14:39 +01:00
parent 32a3feef64
commit 6e1d38ef58
7 changed files with 65 additions and 39 deletions
+19
View File
@@ -0,0 +1,19 @@
<script lang="ts">
import { Auth } from '@supabase/auth-ui-svelte'
import { ThemeSupa } from '@supabase/auth-ui-shared'
export let supabase: any;
export let url: string;
</script>
<div class="p-4">
<Auth
supabaseClient={supabase}
view="magic_link"
redirectTo={`${url}/auth/callback`}
showLinks={false}
appearance={{ theme: ThemeSupa, style: { input: 'color: #fff' } }}
additionalData={{}}
/>
</div>