Good morning folks, any good resources on how to implement authentication and authorization using graphql-yoga, prisma API and GraphQL? Help a hungry newbie for success with this stack! @schickling@Harshit@marcus
j
Jenkins
02/16/2019, 8:00 AM
I'll recommend looking up GraphQL-Shield.
You can then create an Auth action and protect only the paths you're interested in protecting.
As for authentication, that's something I'd just do with a query action in the resolver. Works both if you hold the data yourself locally or if it's external (e.g. Auth0).
👍 1
a
ahebwa49
02/16/2019, 8:47 AM
Thanks @Jenkins
j
Jenkins
02/16/2019, 8:48 AM
No worries fam. If you're stuck, just holla at me 🦜