Anvil Community Forum

Google or Facebook login with custom login setup?

I went through the tutorial for custom logins here and got it working beautifully. However, I’m not sure how to add the option to log in/sign up with Google and/or Facebook in this more custom login setup. Does anyone have an example out there?

Side note: it would be great to have a grand repository of various components and examples, in the vein of those awesome-{library} repos (e.g., awesome-streamlit). awesome-anvil would instantly get a star from me.

This might be a good start: Component library

1 Like

Hi @stefan,

You can use the standard Users Service in combination with the custom sign up flow if you’d like to use the Google and Facebook login options.

Here’s a very simple app that uses the Custom signup flow dependency as well as the standard Users Service for Google and Facebook logins:

https://anvil.works/build#clone:OLA6YTPZHOFSPCM7=4VOET7BVJKON6S5RDR2U7NZD

https://anvil.works/docs/users/logging_in_using_code#log-in-with-google-etc

2 Likes