Sign inSign up

frontendermagazine/token

By frontendermagazine

•Updated over 6 years ago

token micro-service

Image
0

100K+

frontendermagazine/token repository overview

⁠Token microservice

⁠Dependencies

Sessions are stored in Redis⁠, so you should install it⁠.

⁠Configuration

You should add to .env:

  • TOKEN_SERVICE_SECRET - app secret token
  • TOKEN_SERVICE_OPEN - app public token
  • JWT_SECRET - password for jwt
  • COOKIE_SECRET - password for cookies

TOKEN_SERVICE_SECRET and TOKEN_SERVICE_OPEN may be generated in your github account.

JWT_SECRET and COOKIE_SECRET may be random, but should be consistent thru all projects.

⁠Installation

npm i
npm build
npm start

Tag summary

Content type

Image

Digest

Size

50.2 MB

Last updated

over 6 years ago

docker pull frontendermagazine/token