Inject secret key at build time

This commit is contained in:
Michael Jackson
2019-01-05 18:03:10 -08:00
parent 09ed8ac129
commit 76f05911cd
12 changed files with 79 additions and 52 deletions

View File

@ -2,7 +2,7 @@ import crypto from 'crypto';
import jwt from 'jsonwebtoken';
import data from './data';
import secretKey from '../secretKey';
import { secretKey } from '../config';
function getCurrentSeconds() {
return Math.floor(Date.now() / 1000);