Better HN
topnewbestaskshowjobs
Log inSign up

shocked-pikachu

6 karma · joined Dec 27, 2018 (7y ago) · 5 submissions

Submissions

comment 7y ago · link · parent

I wrote something like this called git-admin[1] for remotely managing repositories and the like.

[1] https://github.com/ninetynine/git-admin

comment 7y ago · link · parent

No problem! More features are planned.

3.

Show HN: Git Admin. A CLI for Remotely Managing GitHub Repositories (Beta)(github.com ↗)

4 points · by shocked-pikachu · 7y ago · 3 comments

comment 7y ago · link · parent

I have been using JWT[1] since it's initial push as a mainstream authentication method. There's plenty of libraries that support it and make it easier to use[2]. There's even 0Auth[3] that is a company based around offering authentication services. Simply check for a valid token in the Authorization header, check out the introduction [4].

The library I've linked brings up a good point to make sure that you know the difference between decoding and verifying the token, but after that it's fairly plain sailing.

[1]: https://jwt.io [2]: https://github.com/auth0/node-jsonwebtoken [3]: https://auth0.com [4]: https://jwt.io/introduction/

comment 7y ago · link · parent

_imgcat_ example shows a dog