Learn how to add authentication to React Native Android apps with Auth0.
Read more…
Brought to you by Wern Ancheta & @AccordionGuy
Learn how to add authentication to React Native Android apps with Auth0.
Read more…
Brought to you by Wern Ancheta & @AccordionGuy
What’s up, Devs! How did you like this post? Please share any comments or feedback with us on this thread
First, Thanks a lot for this manual page.
I have a question though.
Why it is essential to setLoggedIn to true on the second useEffect?
After the user successfully logs in with Auth0 on login function we already set loggedIn to true - thats what triggers the useEffect hook from the first place (it depends on loggedin value change) .
Thanks!
My comment is specifically for setting up Google account
section.
I think this article is great for starters and solely for dev purposes, but not so much if you really want to setup Google Oauth with your Google dev account’s stuff.
For example my question is, for Expo apps, should we create a Web, or Android/iOS OAuth 2.0 Client ID
in Google dev console?
I can see that Auth0 expects client secret as well, that tells me it’s more web application.
But doing so, I’m getting Error 400: redirect_uri_mismatch
in the app once I’m attempting login.
Any advice on this area?
Thanks.
We’re also trying to figure out the answer to this question. Followed the same steps as you since we needed the client secret, but not sure how to solve the redirect_uri_mismatch
EDIT: Managed to get it working by adding the redirect URI to the “Authorized redirect URIs” list in Google Cloud console:
https://<YOUR_TENANT_DOMAIN>/login/callback
Also make sure not to have a trailing slash in the above, as that isn’t handled well!