mirror of
https://github.com/LukeHagar/Sveltey.git
synced 2025-12-06 04:21:38 +00:00
adjusting auth flow
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { supabase } from '$lib/supabaseClient';
|
import { supabase } from '$lib/supabaseClient';
|
||||||
import { goto } from '$app/navigation';
|
|
||||||
import { toaster } from '$lib';
|
import { toaster } from '$lib';
|
||||||
import { Mail, Lock, LogIn, UserPlus, Github, Chrome, MessageCircle, Twitter, Star, Eye, EyeOff, AlertTriangle } from '@lucide/svelte';
|
import { Mail, Lock, LogIn, UserPlus, Github, Chrome, MessageCircle, Twitter, Star, Eye, EyeOff, AlertTriangle } from '@lucide/svelte';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
@@ -144,7 +143,7 @@
|
|||||||
const { error } = await supabase.auth.signInWithOAuth({
|
const { error } = await supabase.auth.signInWithOAuth({
|
||||||
provider: provider as any,
|
provider: provider as any,
|
||||||
options: {
|
options: {
|
||||||
redirectTo: `${window.location.origin}/app/dashboard`
|
redirectTo: `${window.location.origin}/auth`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user