---
title: "Discussion on \"Google authentication with Expo & Supabase\" | Hashnode"
description: "Discussion on \"Google authentication with Expo & Supabase\". While building a mobile app for a SaaS, chances are you’re going to deal with social login sooner or later, and sometimes, this can be a little bit overwhelming. \nHowever, the benefits of providing these additional mechanisms can drastically improve ..."
url: "https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Google authentication with Expo & Supabase](https://blog.spirokit.com/google-authentication-with-expo-supabase?utm_source=hashnode&utm_medium=feed)

While building a mobile app for a SaaS, chances are you’re going to deal with social login sooner or later, and sometimes, this can be a little bit overwhelming. However, the benefits of providing these additional mechanisms can drastically improve ...

Jun 2, 2023 · 9 min read · blog.spirokit.com  
Updated Jun 29, 2023  
Read the article

-   [#expo](https://hashnode.com/tag/expo)
-   [#react-native](https://hashnode.com/tag/react-native)
-   [#supabase](https://hashnode.com/tag/supabase)
-   [#authentication](https://hashnode.com/tag/authentication)

## Written by

[Mauro Garcia](https://hashnode.com/@mauro-codes)

@mauro-codes · Buenos Aires, Argentina

  
[View profile](https://hashnode.com/@mauro-codes)

Software Developer

## Responses 3

Markdown supported · ⌘↵ to post

[Cormac Hayden](https://hashnode.com/@cormacncheese)

[Apr 23, 2024](https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6/comment/6628335fbd66191abe655b35)

Thank you, however it's not redirecting me to the app. Just redirects me to my website in the browser

[Cormac Hayden](https://hashnode.com/@cormacncheese)

[Apr 23, 2024](https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6/comment/6628335fbd66191abe655b35#reply-66283ac7d5317129fbc83f88)

Update, you need to make sure the schema url i.e. `mysupabaseapp` is the same one you set in `app.json` in `expo.scheme`

[RilDev](https://hashnode.com/@RilDev)

[Oct 2, 2023](https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6/comment/651a7f712638ec86a76318ab)

Thank you very much for this tutorial! I was able to successfully implement a Google auth in an app for my job.

[Mauro Garcia](https://hashnode.com/@mauro-codes)

[Oct 2, 2023](https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6/comment/651a7f712638ec86a76318ab#reply-651ac2502638ec86a76323ea)

You are welcome! I'm glad to hear it was useful :)

[ephilo](https://hashnode.com/@ephilo)

[Jun 6, 2023](https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6/comment/647ee3ea1147de02efa76518)

This article was a shining gem in a lake of information. I didn't have a proper guide to help me integrate expo with supabase and get a google login, but this article made it easy. Thank you so much. However, when I logged in with google, I get the following warning statement, did you ever have this problem?

// Warning Provided value to SecureStore is larger than 2048 bytes. An attempt to store such a value will throw an error in SDK 35.

I used below code.

// Code SecureStore.setItemAsync( "google-access-token", JSON.stringify(data.provider\_token) );

Actually, I don't think this code is affecting anything, but in the supabase function I create with createClient, I'm assigning an ExpoSecureStorageAdapter to auth.storage, and I'm wondering if I'm settingItem to all the data that is automatically handed over by google.

[Mauro Garcia](https://hashnode.com/@mauro-codes)

[Jun 6, 2023](https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6/comment/647ee3ea1147de02efa76518#reply-647f18471147de02efa76d32)

Hey! Thanks for the comment! I'm glad to hear that the article was helpful :)

I saw the warning you mentioned, but I got that warning while trying to store the entire "data" object. Based on what I've read, I think the ExpoSecureStorageAdapter will save the access token, refresh token, and other info, but I'm not sure if the provider token is being stored for security reasons.

Will take a look at this later and come back with a reply if I find new info. Thanks for the heads-up!

[ephilo](https://hashnode.com/@ephilo)

[Jun 7, 2023](https://hashnode.com/posts/google-authentication-with-expo-supabase/6479c97a18e273fbcfbe88e6/comment/647ee3ea1147de02efa76518#reply-647fdb057fef2032a2441ec4)

[Mauro Garcia](https://hashnode.com/@mauro-codes) Thank you very much, Mauro :)
