Google OAuth with Bubble front-end
Options
Michael Udinski
Administrator
ADMIN
New tutorial on how to use Google OAuth with a Bubble front-end. This is a good tutorial to watch in general for Google OAuth - even if you do not use a Bubble front-end because the same concepts still apply.
Comments
-
- great video. I got this to work the first time around, but am now getting the below error whenever I try to initialize the call to the /oauth/google/continue API. Any ideas of what might have happened? /oauth/google/init call works but this does not.
Status code 403
{"code":"ERROR_CODE_ACCESS_DENIED","message":"Precondition failed.","payload":""} -
Please check your API request history to debug. My immediate thought is that you are re-using the code. Google provides a one-time use code
-
Meaning you need to hit the/init endpoint to generate a new code from Google each time you want to use /continue. One-time use codes are pretty standard for OAuth providers
-
Another great video, thanks for doing these - I was following along nicely and it came to get the code parameter at 10:43 in the video.
This is what I am getting return from my init API call:
{"authUrl":"https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=online&client_id=653809261777-4ar4l8vtobfl5a65j3ug8psv058pmmno.apps.googleusercontent.com&redirect_uri=https://clubhouse.famventure.com/version-test/home&state=&scope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile&approval_prompt=auto"}
any idea what I've managed to mess up?
Thanks
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback