# Google authorization. Error 400

**URL:** <https://forum.adalo.com/t/google-authorization-error-400/14543>\
**Category:** Get Help\
**Created:** [July 5, 2021, 11:14pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543 "2021-07-05T23:14:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ossa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ossa/32/9378_2.png) [@Ossa](https://forum.adalo.com/u/Ossa)\
**Post date:** [July 5, 2021, 11:14pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/1 "2021-07-05T23:14:15Z")

</div>

Hello!  
Google authorization does not work, I can’t understand what’s wrong, please help me.  
OAuth 2.0 Client IDs made, Web client ID added.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/2/23879522cc37ddbdb9d4f42852cc411b6cf042ea.png)

---

<div class="post-metadata">

**Author:** ![Ossa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ossa/32/9378_2.png) [@Ossa](https://forum.adalo.com/u/Ossa)\
**Post date:** [July 6, 2021, 8:54am UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/3 "2021-07-06T08:54:45Z")

</div>

Please, help me understand what needs to be done.  
For me, this is the final stage before uploading the application to the store.

---

<div class="post-metadata">

**Author:** ![Ossa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ossa/32/9378_2.png) [@Ossa](https://forum.adalo.com/u/Ossa)\
**Post date:** [July 6, 2021, 3:49pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/4 "2021-07-06T15:49:43Z")

</div>

1. I created my Android Client ID  
[like in Adalo tutorial](https://help.adalo.com/component-basics/marketplace-components/sign-in-with-google)

 ![1](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/f68bdbd7cc3a5465b44fc58c99aeac14a33fcee0.png)

1. Then I paste it in Web client ID for button “Google Sign in”  
like in this Adalo video tutorial:  
[New Component | Sign-In With Google - YouTube](https://www.youtube.com/watch?v=wiuV55Q-fI4)  
 ![2](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/c/c620bc01b2ea266f6ca92cb0d4ad615f4ce1d0d8.png)

After that I’ve got error 400:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/2/23879522cc37ddbdb9d4f42852cc411b6cf042ea.png)

BUT in [tutorial on Adalo website](https://help.adalo.com/component-basics/marketplace-components/sign-in-with-google#:~:text=7.%20After%20that%20click%20create.%20Note%20that%20you%20won%27t%20need%20to%20paste%20this%20into%20Adalo%2C%20you%20just%20have%20to%20have%20it%20created%20for%20your%20Google%20Sign%20In%20to%20work%20on%20Android) there are said:  
_ **7. After that click create. Note that you won’t need to paste this into Adalo, you just have to have it created for your Google Sign In to work on Android** _

If I do the same, in preview my button looks like

![3](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/6e88be0745508f6168e80e69f499ed17bdd121da.png)

What to do? Help me please.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [July 6, 2021, 6:20pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/5 "2021-07-06T18:20:20Z")

</div>

Hi @Ossa,

It seems you’ve set up your Google console credentials incorrectly for Web authentication.

Googling ( 🙂 ) the error from your screenshot shows some results saying that this might be caused by incorrect OAuth 2.0 Client ID type.  
As I see, you have created type “Android”. Checking my Google Console - I have it for type “Web Application”.

This corresponds to section 4 of the instruction here: [Sign in with Google - Adalo Resources](https://help.adalo.com/component-basics/marketplace-components/sign-in-with-google) (which is called “Create your Web Client ID”). I don’t see it on your screenshot.

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![Ossa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ossa/32/9378_2.png) [@Ossa](https://forum.adalo.com/u/Ossa)\
**Post date:** [July 6, 2021, 6:30pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/6 "2021-07-06T18:30:42Z")

</div>

Hi, Victor

For some reason I decided that this item is only for the web version because in my case it only a mobile application, so I skipped it.  
Thanks Victor, I’ll try.)

---

<div class="post-metadata">

**Author:** ![Ossa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ossa/32/9378_2.png) [@Ossa](https://forum.adalo.com/u/Ossa)\
**Post date:** [July 6, 2021, 7:03pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/7 "2021-07-06T19:03:15Z")

</div>

Victor, thank you very much! I really missed point 4.  
Everything worked out! I wish you success

---

<div class="post-metadata">

**Author:** ![Ossa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ossa/32/9378_2.png) [@Ossa](https://forum.adalo.com/u/Ossa)\
**Post date:** [July 13, 2021, 5:26pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/8 "2021-07-13T17:26:27Z")

</div>

Well, again …  
Everything worked in PWA, but after publishing, “Google sign in” does not work on phone.  
Does anyone have any thoughts on how to fix it?

---

<div class="post-metadata">

**Author:** ![Ossa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ossa/32/9378_2.png) [@Ossa](https://forum.adalo.com/u/Ossa)\
**Post date:** [July 13, 2021, 11:22pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/9 "2021-07-13T23:22:36Z")

</div>

The same problem was in this theme, but no solution

> [@Sign-in with Google not linking to next screen](https://forum.adalo.com/t/sign-in-with-google-not-linking-to-next-screen/7339):
>
> I use the “Sign-in with Google” component on my app. It works on PWA; however, it is not working on the native app after downloading from Play Store. When I click Login or Sign-up, it finds my gmail addresses, but after picking either of them, it does not link to the next screen. It seems to just get stuck on the Login screen. When I login with just the Adalo email/password option on native, it let’s me into my app. On PWA, both email and Google login work. Is / has anyone else experienced…

Please tell me how to fix it?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [July 23, 2021, 11:22pm UTC](https://forum.adalo.com/t/google-authorization-error-400/14543/10 "2021-07-23T23:22:42Z")

</div>

Closed on July 23, 2021, 11:22pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
