hey guys!! is there any documentation/tutorial on ...
# orm-help
l
hey guys!! is there any documentation/tutorial on how to implement Auth0 with Prisma/graphql-yoga server? cheers 🙂
w
are you thinking of machine-to-machine implementation or autho0 login?
l
auth0 login
w
if you are using graphql-yoga with express apply express-jwt middleware as you would with any other express app, then use
req.user
as your session user
your app is the one that handles login and callbacks, pass the access or id token to server
l
thanks! I'm going to do a bit of research about it 🙂
w
2nd res on google searching for
auth0 graphql-yoga
l
yes, I saw that one but it's almost 1 year old, so I was trying to find if there is any "official" documentation about it
but yeah, I'm doing some testing following that implementation
w
👍
f
@Lobo this uses apollo-server but it should be very similar for graphql-yoga: https://github.com/frandiox/vue-graphql-enterprise-boilerplate/tree/master/server
👍 1