Hi Octavian! The access token is the token your app gets from the authentication server after your identity has been verified so that your app can make requests to a resource server on your behalf by passing this token to it. There are different ways or flows to receive an access token from an authentication server. The most recommended flow when it…
Hi Nick, I’ve updated the code to reject the promise instead of throwing an error and now I can see everything in the graphcool logs (
gc logs --tail). I’m surprised to see that throwing in a callback function was not being caught in the try/catch block. Thanks for the tip!
Hi Nick, I’m glad you found the post useful.
As for the error, have you tried checking the id token in the JWT debugger? You want to make sure that the id token you get does correspond to an existing user in Auth0; if not, that may be one of the reasons why the resolver would return null.