What is the current behavior?
When I try to run the loggedInUser query from the authentication example, event.context.auth is always null.
Steps to reproduce
graphcool deploysignupEmailUser mutation in PlaygroundloggedInUser query in PlaygroundAuthorization: <copied token>Query result:
{
"data": {
"loggedInUser": {
"id": null
}
}
}
The loggedInUser function logs "No auth context". I've added an additional log message to print out the whole context object. event.context.auth is indeed null.
What is the expected behavior?
event.context.auth should contain any authentication data.
In step 6, you need to set Authorization: Bearer <token>, are you doing this?
I'm pretty sure I've tried it with and without Bearer. But it seems to work now 馃憤
Most helpful comment
In step 6, you need to set
Authorization: Bearer <token>, are you doing this?