Hacker News new | ask | show | jobs
by agustif 2012 days ago
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/

1 comments

I will check this out, thank you!
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!