# Authentication on firebase with Apple or Google?

**URL:** <https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170>\
**Category:** Questions about Thunkable X\
**Created:** [November 25, 2023, 4:19pm UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170 "2023-11-25T16:19:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [November 25, 2023, 4:19pm UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/1 "2023-11-25T16:19:37Z")

</div>

I just recently switched my apps sign-in method to use Google and Apple, but that leaves my data with unsecure rules as I can’t authenticate those accounts. If anyone knows how to do this please let me know. I can’t seem to find a way to do this.

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [November 26, 2023, 4:15am UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/2 "2023-11-26T04:15:37Z")

</div>

Thunkable provider for google sign-in see the docs.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [November 26, 2023, 12:26pm UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/3 "2023-11-26T12:26:34Z")

</div>

This is a major drawback with those methods. Makes I would likely use a third party auth provider as well, like supabase. It’s not an “easy” integration but not super hard either.

Basically, one thing you **could** do is create a user in your third party provider using [userid]@example.com and assign a random password. Following a successful execution of login, you could pass the received userID and have a cloud function complete the auth exchange and return a token to the front end. Then you could make calls all day long using an alias that you create for your users.

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [November 26, 2023, 5:26pm UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/4 "2023-11-26T17:26:33Z")

</div>

I’m testing out this method. Creating a firebase sign in using their credentials.

My privacy policy already states that i use firebase to store user data.  
Do you think this is legal if I do it this way?

 ![Test_signUP](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/25b21e6e5a0889f229879412d08a58868576f656.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [November 26, 2023, 7:47pm UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/5 "2023-11-26T19:47:50Z")

</div>

Legal yes. Is it the most secure, I just don’t think so. Would be really great if the google and iOS auths used the Firebase sdk to be implemented and not their “native” version. Then, if they’d expose the token you could even use firestore or call Firebase functions and pass a token.

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [November 27, 2023, 4:33am UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/6 "2023-11-27T04:33:11Z")

</div>

> [@jared](#):
>
> Makes I would likely use a third-party auth provider as well, like supabase

I tried that in flutter. It’s worse than firebase authentication

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [November 27, 2023, 3:58pm UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/7 "2023-11-27T15:58:05Z")

</div>

Thanks for all your suggestions. I think I got a working solution for the moment until I can find a way to directly authenticate a user in firebase using other providers.

---

<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:** [February 25, 2024, 3:58pm UTC](https://community.thunkable.com/t/authentication-on-firebase-with-apple-or-google/2722170/8 "2024-02-25T15:58:14Z")

</div>

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