Hey again, I’m sorry for my frequent questions I’m...
# prisma-whats-new
c
Hey again, I’m sorry for my frequent questions I’m trying to get auth token from graphcool user id for my custom facebook auth schema. Following example and test code https://github.com/graphcool/graphcool-lib/blob/master/test/test.ts#L33
Copy code
return graphcool.generateAuthToken(graphcoolUserId, 'User').then(resultToken => {
      console.log(resultToken)
    })
However, the resolved promise does not seem to get called. I’m wondering if anyone could point me to the right direction for using
generateAuthToken()
a
Can you add a
.catch(err => console.log(err))
to that call to see what goes wrong?
c
Thanks for the reply. I tried catching the error, but
{}
came back. 😢
a
Could you create a post on https://graph.cool/forum to share a bit more of your code?
c
Sure, will do that. Thanks
👍🏻 1
Hey btw, I found out what the problem was. I forgot to create PAT for the functions.
👍🏻 1