RN Expo Facebook Auth Nonces Mismatch #22297
Replies: 2 comments 1 reply
-
Hello! I just started a brand new 2024 expo app and created my Development (profile) builds. I was able to see the google button and the popup google window that shows my account to login, and after I press my account it seems that it actually goes through and I see in my terminal that I get all the Google Auth info (token, email, name, etc...) but I get these errors* from the supabase.auth.signInWithIdToken({}): *error messages: ` const GoogleSignInButtonProvider = () => { const onGoogleSignInHandler = async () => {
}; export default GoogleSignInButtonProvider; A) The only way I was able to fix this is by switch the option SKIP NONCE to TRUE.... but I am not sure if I am supposed to do that, it says its less secure. I am testing it in an IOS simulator. |
Beta Was this translation helpful? Give feedback.
-
Did you figure it out, I'm also struggling with this. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to implement Facebook authentication in a React Native Expo app using Supabase and
react-native-fbsdk-next
. I'm currently following the Google auth implementation guide provided by Supabase and adjusting it for Facebook, as the Supabase documentation doesn't provide clear instructions on how to implement Facebook auth with Expo. According to the Supabase API docs, thesignInWithIdToken
method accepts 'facebook' as a provider option, just like 'google'.Here's the function I'm using for Facebook sign-in:
When I run this function, I get an
AuthApiError: Nonces mismatch
error. However, when I log the nonce to the console, the nonce provided tosignInWithIdToken
and the nonce I got fromgetAuthenticationTokenIOS
are the same value.I'm not sure why I'm getting this error or how to fix it. Can anyone guide me on how this login function should be done? Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions