Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JWT example with @Guard decorator #8

Open
pie6k opened this issue Apr 3, 2018 · 4 comments
Open

Add JWT example with @Guard decorator #8

pie6k opened this issue Apr 3, 2018 · 4 comments
Labels

Comments

@pie6k
Copy link
Collaborator

pie6k commented Apr 3, 2018

No description provided.

@pie6k pie6k added the docs label Apr 3, 2018
@lorefnon
Copy link
Contributor

lorefnon commented Apr 22, 2018

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.

@pie6k
Copy link
Collaborator Author

pie6k commented Apr 26, 2018

If you'd like to extract it from your app and create PR with example, that would be so awesome @lorefnon :)

@lorefnon
Copy link
Contributor

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.

@pie6k
Copy link
Collaborator Author

pie6k commented Apr 26, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants