# Google OAuth process kind of sucks

**URL:** https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313
**Category:** Questions about Thunkable X
**Tags:** google, oauth
**Created:** [March 12, 2025, 5:07pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313 "2025-03-12T17:07:39Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 12, 2025, 5:07pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/1 "2025-03-12T17:07:39Z")

</div>

I have been trying to use the OAuth method as a way to get my app to function with a login process, and when I sign out of the OAuth, it actually doesn’t.

Here’s a little bit of my code:

 ![image-removebg-preview (3)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/65b7301e5b9815a17917ea0e85aa0a6df25b43e0.png)

For the time being, I’ve replaced my variables to `""` once I have clicked the sign out button. But if I sign in with Email instead, the name won’t show up.

Any help will be appreciated!

_ **EDIT:** _ _I forgot to add the sign out block under the `Firebase sign out` block, so I added it, making that it doesn’t get confusing._

Thanks,  
Krish

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 14, 2025, 1:09pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/2 "2025-03-14T13:09:41Z")

</div>

im so lonely

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [March 17, 2025, 8:18am UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/3 "2025-03-17T08:18:35Z")

</div>

Hello @krish0  
How did you test it?  
Android, iOS, Web Preview or Web app  
Instead of setting null, could you please try to set an empty text?

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 18, 2025, 12:23am UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/4 "2025-03-18T00:23:04Z")

</div>

I tested this on Web Preview, and yes, I can change it to an empty text. But could you please analyze my problem? I can send you whatever images you require or a link perhaps.

**Update** : I’ve put the variables to empty strings, and tested it out. Nothing changed. I understand there could probably be a difference in what you may say next, so I will wait. Sorry I’m yapping a lot 😑

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 18, 2025, 12:25am UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/5 "2025-03-18T00:25:09Z")

</div>

I’ve set all the code properly, and even went onto YouTube, Thunkable Docs, and other resources that could’ve helped me, but nothing was in detail. All the Google data is being displayed as I want it to, but the sign out just isn’t working. I’m unsure about the Firebase process, but I will have to look deeper into that later on.

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [March 19, 2025, 11:08pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/6 "2025-03-19T23:08:57Z")

</div>

If you just do, button click → sign out from Google, does that work? This is assuming that you were able to sign into Google successfully which it sounds like you were.

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 21, 2025, 12:46am UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/7 "2025-03-21T00:46:06Z")

</div>

The Google Sign-in was definitely a success… I have actually done sign out through button. It is interesting how it stays signed in despite the variables becoming empty strings (fyi they’re stored variables)

In the Login page, I have set up a button that directs to a Google Sign-in page. The OAuth will gather my info and store it in these specific variables (see image in question) to use throughout using the app. Even if you close the app, as long as you are signed in, it will automatically redirect to the home screen.

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [March 21, 2025, 8:34pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/8 "2025-03-21T20:34:53Z")

</div>

So just to clarify, the sign in and sign out works if that is the only operation correct?

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 21, 2025, 8:58pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/9 "2025-03-21T20:58:22Z")

</div>

Yes, for the login process. I have implemented OAuth and Firebase. Both sign in’s work well but I am not able to sign out of OAuth. I also don’t know about Firebase…

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [March 25, 2025, 6:16pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/10 "2025-03-25T18:16:16Z")

</div>

If you do just sign out from google on its own, does it error out?

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 25, 2025, 8:06pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/11 "2025-03-25T20:06:20Z")

</div>

I tested the block out, and put an `if... do` block to see if its an error, then it would display a popup alert displaying the error message (currently removed) but it didn’t do anything. It just stayed on the same screen.

---

<div class="post-metadata">

### Author: ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)
#### Post date: [March 30, 2025, 3:13pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/12 "2025-03-30T15:13:26Z")

</div>

Figured it out. Sorry for the late response. Decided to finally work I guess.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [June 28, 2025, 3:14pm UTC](https://community.thunkable.com/t/google-oauth-process-kind-of-sucks/3651313/13 "2025-06-28T15:14:14Z")

</div>

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