moving to v3
This commit is contained in:
parent
25fc742659
commit
a3cd215c80
|
@ -1,5 +1,3 @@
|
|||
JWT_ACCESS_SECRET=
|
||||
JWT_REFRESH_SECRET=
|
||||
JWT_ACCESS_TIME=
|
||||
JWT_REFRESH_TIME=
|
||||
REDIS_PORT=
|
||||
|
|
|
@ -102,3 +102,6 @@ dist
|
|||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
jwtRS256.key
|
||||
jwtRS256.key.pub
|
11
README.md
11
README.md
|
@ -5,12 +5,19 @@ Template to get started with Backend auth module for REST API
|
|||
|
||||
After pulling this project, create a file named .env in the root of the project and add below information. Change the values of below keys as per your requirement.
|
||||
|
||||
- .env example
|
||||
|
||||
```
|
||||
JWT_ACCESS_SECRET=b4f577d2aa9cc60f9e9912761c6a907067a3f6f4f241f3111d957b0486c73d04a0aaf1824507a609813232888c26ec7de01193afb100993e2cd7e6ab8b3a99d3
|
||||
JWT_REFRESH_SECRET=7dccf6e03da65227683100b4f6b7caf7e9ae3f2dd4f26dac0ffd0a31c05d79a1e54e22a226013c1b864d25262653b304571081ee37c19c5e126eacf52a834b9b
|
||||
JWT_ACCESS_TIME=30s
|
||||
JWT_REFRESH_TIME=30d
|
||||
REDIS_HOST=192.168.100.101
|
||||
REDIS_PORT=6379
|
||||
DB_CONN_STRING=mongodb://127.0.0.1:27017/nodejsjwtauth
|
||||
```
|
||||
|
||||
- Deffi-Hellman key exchange setup
|
||||
|
||||
```bash
|
||||
ssh-keygen -t rsa -P "" -b 4096 -m PEM -f jwtRS256.key
|
||||
ssh-keygen -e -m PEM -f jwtRS256.key > jwtRS256.key.pub
|
||||
```
|
|
@ -4,7 +4,8 @@
|
|||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "nodemon index.js",
|
||||
"start": "node index.js",
|
||||
"dev": "nodemon index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
|
|
Loading…
Reference in New Issue