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
1 year ago
That snippet won't work, ou have to initiate a supabase client first
Andreas Møller
1 year ago
We use supabase auth, but not the js lib
Lucas G
1 year ago
I think you have to use https://<your-ref>.supabase.co/auth/v1/authorize?provider=discord