Hi, I'm trying to implement a login with discord option on supabase https://supabase.com/docs/guides/auth/social-login/auth-discord. I have some troubles to implement the login code in toddle : async function signInWithDiscord() { const { data, error } = await supabase.auth.signInWithOAuth({ provider: 'discord', }) } Did someone already did it ?
Lucas G
10 months ago
Jan 21, 2024, 4:54 PM
That snippet won't work, ou have to initiate a supabase client first
Andreas Møller
10 months ago
Jan 21, 2024, 4:55 PM
We use supabase auth, but not the js lib
Lucas G
10 months ago
Jan 21, 2024, 4:55 PM
I think you have to use https://<your-ref>.supabase.co/auth/v1/authorize?provider=discord