Add JWT example with @Guard decorator
I have been working on an example application for personal evalation. It is very early prototype but features client-server JWT auth.
I plan to integrate hierarchical role based authorisation in near future.
If you'd like to extract it from your app and create PR with example, that would be so awesome @lorefnon :)
Sure, will do.
I just realized that @Guard no longer exists in master. I will update my example to use @Before and create a PR shortly.
Right. I've removed it as @Guard was simply not needed abstraction. It was simple function in form of
function Guard(options) {
return Before(otherOptions)
}
as I think it's good approach to keep graphql more like library than framework, I've decided such Guard is bad abstraction.