S
Supabase•2mo ago
cy_123

How do I get Google authentication setup?

I'm new to Supabase and don't have much coding experience - I want to get Google Authentication setup with Lovable - how do I do that?
49 Replies
cy_123
cy_123OP•2mo ago
>
ihm40
ihm40•2mo ago
I've not used lovable so i'm not sure if it comes with some prebuilt config for this but if you have access to your supabase dashboard you can follow the implicit flow creation here https://supabase.com/docs/guides/auth/social-login/auth-google to set up authentication with google. Then on your application you would need to add
supabase.auth.signInWithOAuth({
provider: 'google',
})
supabase.auth.signInWithOAuth({
provider: 'google',
})
to be called when you click the "sign in with google" button. If set up correctly this should handle most of the legwork and you will be redirected to your frontend and your user will be logged in
Login with Google | Supabase Docs
Use Sign in with Google on the web, in native apps or with Chrome extensions
tomaspozo
tomaspozo•2mo ago
I have built a couple of projects on Lovable with Google Auth, and its been pretty straight forward, Felix from the Lovable team recently release a list of useful prompts including this. Check that out! https://prompt-directory-fh.lovable.app/ Most of the times Lovable will ask you for the Google secrets, if it doesn't, follow the prerequisites setup from the doc shared by @ihm40
cy_123
cy_123OP•2mo ago
I don't have any coding knowledge - can you assist me in dms if possible?
cy_123
cy_123OP•2mo ago
Yes
tomaspozo
tomaspozo•2mo ago
and what was the result?
cy_123
cy_123OP•2mo ago
It didnt give steps
garyaustin
garyaustin•2mo ago
In general you can ask specific questions here and get help or get pointed to docs or potential ways to solve your issue. You should not expect other users to give you step by step coding steps especially when there are guides like first linked.
cy_123
cy_123OP•2mo ago
I don't have any coding experience
garyaustin
garyaustin•2mo ago
Not sure what to say. If you AI can't help you and you can't understand the basic docs then it is going to be a tough road. You can't expect to get custom coding help step by step.
Try the guide with your AI and see where you get. The guide is used by many and the settings are pretty clear. The OAuth call for the client code is well documented so pointing your AI to it should help. Lovable is used all the time for this stuff. Maybe some user will come along willing to work step by step. But I recommend you try stuff and ask if you get stuck or get errors.
cy_123
cy_123OP•2mo ago
Do I need a terminal for this?
garyaustin
garyaustin•2mo ago
I believe you have to setup some URLs in Google dashboard and then in Supabase Authentication providers section for Google. Then you add application code depending on your framework. https://supabase.com/docs/guides/auth/social-login/auth-google?queryGroups=platform&platform=web#signing-users-in Lovable should know how to do the client part.
cy_123
cy_123OP•2mo ago
Am I able to use Vercel?
tomaspozo
tomaspozo•2mo ago
Yes
cy_123
cy_123OP•2mo ago
@garyaustin question - what does this mean?
No description
cy_123
cy_123OP•2mo ago
i really want to learn but this documentation is confusing especially for a first-time user can you please guide me step by step @garyaustin
garyaustin
garyaustin•2mo ago
Sorry, I've never done it.
cy_123
cy_123OP•2mo ago
i really want some help
tomaspozo
tomaspozo•2mo ago
Looks like the link provided is not the right one, by looking at the screenshot I feel like garyaustin wanted to share this one: https://supabase.com/docs/guides/auth/social-login/auth-google#project-setup
Login with Google | Supabase Docs
Use Sign in with Google on the web, in native apps or with Chrome extensions
tomaspozo
tomaspozo•2mo ago
what you get from step 4 is what you enter on those settings, Client ID and Secret, you get both from your Google console
cy_123
cy_123OP•2mo ago
can you help in dms and guide step by step? i have never coded before please šŸ™
tomaspozo
tomaspozo•2mo ago
better to keep in here so others benefit from the conversation
cy_123
cy_123OP•2mo ago
alright
tomaspozo
tomaspozo•2mo ago
did you checked the link I sent? the guides do not imply any coding experience, is just a bunch of step by step
cy_123
cy_123OP•2mo ago
can you guide me step by step on how to set it up first for google console
tomaspozo
tomaspozo•2mo ago
try to follow each step
cy_123
cy_123OP•2mo ago
i've tried but absolutely don't understand what google console is necessary @tomaspozo
tomaspozo
tomaspozo•2mo ago
Arielle Phoenix
YouTube
How To Set Up Google OAuth Login (Supabase Tutorial)
This step-by-step guide covers configuring OAuth, setting up Google sign-in, and integrating it with your Supabase project. Perfect for developers looking to add secure Google authentication to their apps. Simplify user login with Supabase Auth and Google OAuth 2.0. Ps. All keys have been deleted and replaced. šŸ˜Ž Join this channel to get acc...
tomaspozo
tomaspozo•2mo ago
here is a step by step video, from 1:30 it goes through google auth setup including the part of Google
cy_123
cy_123OP•2mo ago
can you stay here to help in case i mess up anything
tomaspozo
tomaspozo•2mo ago
I'll be around for a couple of hours...
cy_123
cy_123OP•2mo ago
how do you find localhost for vercel? @tomaspozo
tomaspozo
tomaspozo•2mo ago
localhost is for local development are you on the redirect url section inside the Google console? I imagine you are using the Supabase platform, so you copy your supabase url in there... better if you share a screenshot where you are stuck
cy_123
cy_123OP•2mo ago
No description
cy_123
cy_123OP•2mo ago
see here @tomaspozo apparently i have to add localhost for testing idk what my localhost address is do i have to add localhost? @tomaspozo
tomaspozo
tomaspozo•2mo ago
if it forces you to put 2 urls, put http://localhost:3000 and please stop tagging, I'll be back to you as I can and let you know when I leave šŸ˜…
cy_123
cy_123OP•2mo ago
it doesnt force me ot *to
tomaspozo
tomaspozo•2mo ago
then only use the supabase one
cy_123
cy_123OP•2mo ago
how do i get this information
No description
cy_123
cy_123OP•2mo ago
i need the project url and key
tomaspozo
tomaspozo•2mo ago
I haven't used v0 too much, so not sure if you can just prompt it, if I remember correclt there is a Supabase integration option
cy_123
cy_123OP•2mo ago
i need the project url and key how do i get those
tomaspozo
tomaspozo•2mo ago
No description
tomaspozo
tomaspozo•2mo ago
from your Supabase dashboard
cy_123
cy_123OP•2mo ago
uhh i dont know which one's the url and which one's the key so can you go in vc and guide
tomaspozo
tomaspozo•2mo ago
yeah, lets do that...
cy_123
cy_123OP•2mo ago
yes i can hear i cant talk but

Did you find this page helpful?