Hi,
I set up login to show up on any page via a modal. I can confirm that regular email and password login works. However, I am having trouble setting up OAuth, specifically Google. I followed the written and video tutorials, but am still getting issues.
Attached is a video of the flow. When I login with Google, it creates a user in Xano with Google Oauth info, and it redirects to the page I want, but it doesn’t return Xano auth data, as the video shows.
What could be causing this? I tried redirected after Google login to both an open page, and alternatively to a page requiring authentication, but it didn’t work.
Thanks in advance for the help, and please let me know if you need any more background info for the problem.
Heres what i have for the redirect urls. The top one should redirect to a post-login page in the editor that automatically redirects to my original homepage, which includes the login popup/modal.
Ah sorry, you had shared those already. Didn’t see them the first time
Let me try to reproduce this on my side and get back to you. I might not have time today. Would it be ok if I got back to you on Tuesday / Wednesday on this one?
Will do! I’m not very familiar with OAuth and have never set it up with Xano so LinkedIn might be a stretch for me but if you have time to record a short video of those issues as well, I’ll take a look
The only meaningful difference (that I can see) between how I set up my flow vs. how Quentin set his up is that my login flow starts in a modal (in the home page) instead of a login page, and I redirect back to the original home page (that is public and doesn’t require authentication) after google redirects to post-login page, while Quentin redirects to a home page that requires authentication.
I tried modifying my flow to match how Quentin set his up. I started the user on a login page rather than a mobile, and then google redirected them to the post-login page, which automatically redirects to a home page that requires authentication. It didn’t change anything and I was still experiencing the same issues as before.
Just to clarify, the sign up through google is successfull in Xano. I see that a user is created with a populated google-oauth column. However, the token is somehow not being set on the WeWeb side.
Hi @Adam, it seems like you encounter the same issue as another user. I think your google API group is still using an old deleted user table. You have to swap the table used in the /continue action on Xano.
@Alexis
I never changed the user database table in Xano, it is still the same.
I have however upgraded my Xano account, which created new API base endpoint urls, which I updated in WeWeb for both the regular Xano plugin and the Xano auth plugin.
Just in case it would help, I replace “Get record from User” in the Xano /oauth/google/continue endpoint. But still having the same issue.
Can you share screenshots of those endpoints in Xano? It may be that they are referencing a different user table for some reason
From the error message we get, it really seems like the issue is coming from the Xano side of things, specifically, the /oauth/google/continue endpoint:
PS: just sent you a DM with the exact endpoint URL that’s failing so you can check on your side if it matches the endpoint you’re trying to call in Xano or if something changed with the new API base endpoint URLs