prisma-archive / graphcool-templates

📗 Collection of Graphcool Templates
MIT License
361 stars 100 forks source link

AuthenticateEmailUser Issue #59

Closed borakilicoglu closed 7 years ago

borakilicoglu commented 7 years ago

I'm getting this issue at authenticateEmailUser.js

GraphQL error: function execution error: Error: Graphcool must be instantiated with a pat when calling 'generateAuthToken': new Graphcool('project-id', {pat: 'pat'})

marktani commented 7 years ago

You need to create a PAT in your project that's called the same as your function.

borakilicoglu commented 7 years ago

Solved, thank you 👍

Anujraval24 commented 5 years ago

what is PAT exactly? event.context.graphcool.pat is this what are you talking about? @marktani