How to Add Google Authentication to a Phoenix App

Hi everyone, I hope you’re doing well.

I’m looking for some suggestions or recommendations. I have a Phoenix app up and running, and I’ve already set up authentication using mix phx.gen.auth. Everything is working fine so far.

Now, I’d like to add Google authentication (OAuth) to the app. Has anyone done this before or can point me to a good approach or resource?

Any help or advice would be greatly appreciated. Thanks in advance!

Probably using uberauth

3 Likes

i use: github.com/dwyl/elixir-auth-google. the only problem faced its PORT that you may use, i sended i PR fixing it but it has at least 4 errors in the process out of 100.

This approach seems to be the most up-to-date:

It utilises GitHub - pow-auth/assent: Multi-provider framework in Elixir

1 Like

That seems like a good option, I’ll take a look. Thanks.