mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
feat(#29): use magic link to sign in
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user