Join Slack
Powered by
in a custom resolver, how can I check if the user ...
# prisma-whats-new
j
johhansantana
11/06/2017, 2:50 PM
in a custom resolver, how can I check if the user is authenticated?
n
nilan
11/06/2017, 2:58 PM
https://github.com/graphcool/framework/blob/master/examples/full-example/src/checkout/pay.ts#L50-L53
j
johhansantana
11/06/2017, 3:00 PM
thanks
@nilan
when doing the query do I just send the auth token via the headers like I normally do?
n
nilan
11/06/2017, 3:00 PM
yes
j
johhansantana
11/06/2017, 3:00 PM
ok, perfect, thanks!
johhansantana
11/06/2017, 3:15 PM
@nilan
is there a way to get currentUser in custom resolver?
2
Views
Open in Slack
Previous
Next