# Google auth via Xano (through modal) issues

**URL:** <https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960>\
**Category:** Ask us anything\
**Tags:** authentication\
**Created:** [August 21, 2023, 6:14pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960 "2023-08-21T18:14:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 21, 2023, 6:14pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/1 "2023-08-21T18:14:32Z")

</div>

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](https://drive.google.com/file/d/1bMW2eaSqXnUHmLAcL1zN7V3Z_BdO0P8C/view?usp=sharing) 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.

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [August 22, 2023, 12:54pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/2 "2023-08-22T12:54:10Z")

</div>

Hey @Adam 👋

Could you send screenshots of the authorized domains you setup in Google, as well as the redirect link?

It should look something like this:  
 ![CleanShot 2023-08-22 at 14.52.17](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/238339cffebaba6244aa721e4d8b2bde7c8c6689.png)

(Seems like to me that the domain is not set on Google, hence, not sharing cookies).

Also, could you try reloading your browser on the WeWeb app after having been redirected to it by Google, and checking if the user appeared?

Thanks

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 22, 2023, 12:59pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/3 "2023-08-22T12:59:58Z")

</div>

Thanks for your response Quentin.  
In case its relevant, I am using the editor to test.

Auth domains:

 ![Screen Shot 2023-08-21 at 8.33.34 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/cf29e21d76b0dd5431ff8a009ecbb6c365ddc56b.png)

UI structure:

 ![Screen Shot 2023-08-21 at 9.02.36 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a62812f588e67d159fb22cbc73ddd3fef31accfa.jpeg)

Redirect URIs:

 ![Screen Shot 2023-08-21 at 8.33.07 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/209b7dfa8a5f824f32a999deedeb14bf8c17e13e.png)

Results in Xano User table after successful Google OAuth (but UNsuccessfull redirect and UNsuccessfull weweb authorization token return)

 ![Screen Shot 2023-08-21 at 8.51.26 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/eac691b559f55479c7c9a0944c71f75c04142921.png)

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 24, 2023, 9:29am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/4 "2023-08-24T09:29:00Z")

</div>

@Quentin Are there any other screenshots I should take of the issue?

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [August 25, 2023, 10:59am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/5 "2023-08-25T10:59:20Z")

</div>

Hi, did you correctly authorize javascript origin too in the google console ?

You have ton configure it in your credentials screen on the google console :

 ![Capture d’écran 2023-08-25 à 12.59.01](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/5124b59d77d1cf4e6616cdfeb65af085ae4e05a3.png)

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 27, 2023, 11:43am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/6 "2023-08-27T11:43:50Z")

</div>

Thanks @Alexis I tried that and am still having the same issue.

Here is what I added to that section

 ![Screen Shot 2023-08-27 at 2.43.20 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/ac0ebf8e51c779a451edc9276250f67eabda3fde.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 28, 2023, 7:52am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/7 "2023-08-28T07:52:17Z")

</div>

How about the `Authorized redirect URIs`, did you configure those as well?

The demo is with Supabase but perhaps [this video](https://youtu.be/pHkkD2FFOWM) might help.

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 28, 2023, 8:28am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/8 "2023-08-28T08:28:00Z")

</div>

@Joyce

 ![Screen Shot 2023-08-28 at 11.26.39 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/7e9f2941ee20e9d9cb1af4ef26bc962cdfe92083.png)

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.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 28, 2023, 8:35am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/9 "2023-08-28T08:35:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 28, 2023, 8:47am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/10 "2023-08-28T08:47:50Z")

</div>

@Joyce Fo sure! Thanks for your help! In addition, I’m having related but not exactly the same issues with Linked in OAuth.

Please let me know if I can provide you with any additional info

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 28, 2023, 8:53am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/11 "2023-08-28T08:53:31Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [August 28, 2023, 9:00am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/12 "2023-08-28T09:00:28Z")

</div>

Did you use the google auth plugin xano side ? Did you modify anything inside ?

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 28, 2023, 9:35am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/13 "2023-08-28T09:35:22Z")

</div>

@Alexis  
Yes both for google and linkedin

 ![Screen Shot 2023-08-28 at 12.32.24 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/0b140ab9e896f18fdaffacfc3d09f731fbad6d3d.png)

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 28, 2023, 9:43am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/14 "2023-08-28T09:43:10Z")

</div>

@Alexis  
I did not modify anything inside Xano. I followed this tutorial [https://www.youtube.com/watch?v=FaTHPG9kUrk](https://www.youtube.com/watch?v=FaTHPG9kUrk)

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.

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [August 28, 2023, 12:16pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/15 "2023-08-28T12:16:14Z")

</div>

Please submit a ticket on [support.weweb.io](http://support.weweb.io) with the link of your project I will give a look 🙂

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 29, 2023, 11:40am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/16 "2023-08-29T11:40:59Z")

</div>

Thanks @Alexis! I created the ticket [WeWeb - Support](https://support.weweb.io/ticket/p94Vc0fdHyePpJ/)

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [August 29, 2023, 1:31pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/17 "2023-08-29T13:31:04Z")

</div>

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.

 ![Capture d’écran 2023-08-29 à 15.30.40](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/bae0f11043528b83a4b26353d17e25b488226de2.png)

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 29, 2023, 4:03pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/18 "2023-08-29T16:03:24Z")

</div>

@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.

I have also contacted Xano support.

What else can I try?

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 29, 2023, 4:38pm UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/19 "2023-08-29T16:38:52Z")

</div>

Hi @Adam 👋

> [@Adam](#):
>
> which created new API base endpoint urls

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:

 ![CleanShot 2023-08-29 at 18.25.36@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1dfec26d90d3473a1b3757649d2dd36c5ed8efb5.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/adam/32/9449_2.png) [@Adam](https://community.weweb.io/u/Adam)\
**Post date:** [August 30, 2023, 10:32am UTC](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960/20 "2023-08-30T10:32:55Z")

</div>

@Joyce I PMed you back.

@Alexis How did the other user solve the issue?

[Next page](https://community.weweb.io/t/google-auth-via-xano-through-modal-issues/3960.md?page=2)
