Issue with Google login/signup - Error: precondition failed
![Louis Machado - CSA](https://us.v-cdn.net/6037124/uploads/userpics/GR7ZQ0L4IRXA/n4AFXSZGGX21N.jpg)
ADMIN
Hello everyone,
If you are getting a "preconditon failed" error when running one of the login/signup/continue endpoints in Xano. It could be that your browser is encoding the code in the URL.
As you follow all the steps presented in the video and documentation, first you run the /oauth/google/init endpoint, and after that, you get the code from the browser and use it in the login/signup/continue endpoints.
If your code starts with "4%2F...", your browser is encoding the beginning of the code in the URL. Where it is "4%2F", it should be "4/".
The solution to this is applying the url_decode filter in the value input of the code query parameter in the external API call to Google, like in the image below.
Comments
-
That totally makes sense, but even then I still get the 400 error 🙁
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