Closed HaNdTriX closed 7 years ago
Thanks for this simple but powerful package!
This PR fixes the case where a dev only want's to authorize an resolver without passing in a scope:
Error:
TypeError: Cannot read property 'length' of null
Example:
... myResolver: withAuth((_, query, context) => { return { foo: 1 } }) ...
Docs https://github.com/kkemple/graphql-auth#withauthscope-callback
thank you so much for getting to this. i wanted to last weekend and just couldn't get the time!
i have deployed a new version: 0.0.4
0.0.4
Thanks for this simple but powerful package!
This PR fixes the case where a dev only want's to authorize an resolver without passing in a scope:
Error:
Example:
Docs https://github.com/kkemple/graphql-auth#withauthscope-callback