Skip to content

Commit

Permalink
Update secret usage in READEME
Browse files Browse the repository at this point in the history
  • Loading branch information
VamOSGS committed Feb 4, 2018
1 parent 7fadfe5 commit 9b97fea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ const jwtKoa = require('jwt-koa');
#### Set secret key for JWT

```js
process.env.secret = 'SECRET';
if (process.env.NODE_ENV !== 'production') require('dotenv').config();

const { SECRET } = process.env;

```

#### Set middleware to secured Router
Expand Down

0 comments on commit 9b97fea

Please sign in to comment.