any good auth0-graphcool integration example? pref...
# prisma-whats-new
e
any good auth0-graphcool integration example? preferably github source link
n
e
ive seen that, there is some edge cases not handled, im looking for sample that has been used in production apps
👍 1
h
Hello @edward_s, what are the edge cases you're looking for? I'd love to make sure I thought about them :)
e
@hvillain it just feels like a simple demo app, no offence, it does serve its purpose
anyway, i found this alternative from searching through this slack: https://github.com/THook/react-apollo-graphcool-auth0-starter pretty great codes
@hvillain oh wow, I just realised you wrote the sample codes above. Great work. Side question, do you know if auth0.js works in react-native? or do I have to stick to auth0 lock
h
I believe it does work on RN. The starter kit you found was a first attempt but I managed to make everything work with Reactql instead, which provides a lot more of utilities. I added a proper Authservice and subscriptions. PM me your Github account and I'll add you if you want to try it out ;)
⭐ 2
t
hey @edward_s, I just saw this thread and wondering if you're doing RN+auth0+graphcool? I'm about to start a new RN project myself
n
hey @trond do you need help with that? You should be able to compare to the React examples posted above, but replace
localStorage
with
AsyncStorage
as we did here: https://github.com/graphcool-examples/expo-auth0-instagram-example/blob/master/main.js#L44-L53