FrontenderMagazineDevelopment / token.frontender.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 97.0%Language:Dockerfile 3.0%