Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
fix(user): jwt token secret issue
Browse files Browse the repository at this point in the history
close #704
  • Loading branch information
BatAmar Battulga committed Jan 28, 2020
1 parent 6db2bd8 commit 76f2474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# general
PORT=3300
NODE_ENV=development
JWT_TOKEN_SECRET=token
HTTPS=false
# Pubsub type: REDIS | GOOGLE
PUBSUB_TYPE='REDIS'
Expand Down
2 changes: 1 addition & 1 deletion src/db/models/Users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const loadClass = () => {
}

public static getSecret() {
return 'dfjklsafjjekjtejifjidfjsfd';
return process.env.JWT_TOKEN_SECRET || '';
}

/**
Expand Down

0 comments on commit 76f2474

Please sign in to comment.