Authentication (auth0) and graphcool example is not working


#1

I followed docs but ended up miserably.
Links (authentication integrations, Auth0 integration) are dead or removed in
https://docs.expo.io/versions/latest/guides/using-graphql.html#social-oauth-authentication-providers

You have more technical details in my post: https://github.com/graphcool-examples/react-native-graphql/issues/12
Note that Expo auth0 is also broken and seems related because auth0 removed legacy API: https://github.com/expo/auth0-example/issues/6 :frowning:

Additionally, IMHO, there’s no way we push a user to go to a browser to login “securely”. Browser integration in Android apps is not par with iOS, so we need to do it natively, using auth0 API (https://<domain>.auth0.com/oauth/ro) or else.

Could we have an example using graphcool internal email/password auth? And/or update auth0?

Firebase is a different dog, no need to mention here :slight_smile:


#2

hi there! oh wow sorry about that – we didn’t actually write that guide, graphcool folks wrote it for us, but they write tons of documentation and i imagine it is hard for them to keep it all up to date.

Additionally, IMHO, there’s no way we push a user to go to a browser to login “securely”. Browser integration in Android apps is not par with iOS, so we need to do it natively, using auth0 API (https://.auth0.com/oauth/ro) or else.

i do not understand what you mean by this

Could we have an example using graphcool internal email/password auth? And/or update auth0?

I created an issue to track it here: https://github.com/expo/expo/issues/601


#3

Thanks Brent!

graphcool-auth0 login example was pushing the user to the browser to sign up/in.
It was not “native”.

I know how to sign up/in using auth0 API but have a hard time converting this knowledge in Expo+RN.

I’ll try your example ASAP.


#4

@notbrent, your code is great. Perfect timing for me. :slight_smile:

May I ask what tool is best to document our Expo code?
There’s no reply on Stack Exchange


#5

@phim if you’ve written an awesome example, you can submit a PR to our docs to have it added :slight_smile:


#6

@notbrent, @jimmylee
May I ask what tool is best to document our Expo code?
There’s no reply on Stack Exchange

bump :slight_smile:


#7

hi @phim! i don’t understand the question – what tools would you use to document your code with other languages/tools?