News for hackers. Stuff that matters.
Re:Nexus 1.0: A Major Release for Type-Safe, Code-First Grap... by agustif on Tuesday December 15, 2020 @06:58AM (#25429451)
Hey this seems like a in interesting problem to solve at the library-level.

I'm a small contributor to an nice and modular Accounts/User library built in typescript. It's compatible with several databases, and can be used both with REST and GraphQL transports.

It does have indeed an @auth directive you can use, you can also extend new directives which for example are related to a custom ROLE === ADMIN check, etc, but you need to build this yourself.

If you're interested https://www.accountsjs.com/

Re:Nexus 1.0: A Major Release for Type-Safe, Code-First Grap... by bionhoward on Tuesday December 15, 2020 @09:50AM (#25430789)
I will check this out, thank you!
Re:Nexus 1.0: A Major Release for Type-Safe, Code-First Grap... by agustif on Friday December 25, 2020 @08:27AM (#25536327)
No problem! lemme know if you need any help/pointers, we also are on slack although is a pretty silent channel you can DM me there if you want or just @me in github same username than here if you open an issue in the repo or something!

PS: I might update some work I did adding oauth with facebook and accompain it with a decent blogpost about how to use the library!