React Native Social Sign On requires at least v0.30.0 Hasura Auth #2919
avaliani
started this conversation in
Tips and Tricks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem:
When attempting to do social sign on with React Native you encounter the following error:
The+value+of+%22redirectTo%22+is+not+allowed.
Given:
/settings/authentication
propertyAllowed Redirect URLs
so that allowed redirects includes both your web app urls AND your mobile app URI scheme, e.g.http://localhost:3000, https://XXXX.vercel.app, myapp://
Note: You can only see this error if you’re using charles proxy or something similar since the error is happening in the request made by
react-native-inappbrowser-reborn.
The symptom of the error is you’ll see the in app browser open up the page you’ve specified inCLIENT_URL
property in nhost/settings/authentication
Solution:
Check your
Auth Version
in nhost/settings/authentication
. Deep link support to the redirectTo was added in v0.30.0 of hasura auth (nhost/hasura-auth#513, https://github.com/nhost/hasura-auth/releases). If you update your auth version, you should be able to specify the mobile app URI scheme in the redirect urls and not encounter an error.NOTE: I’m new to Hasura and nhost. And I don’t have guidance on what auth version upgrades are safe or unsafe.
Beta Was this translation helpful? Give feedback.
All reactions