okasion
2 years ago
5 changed files with 1898 additions and 0 deletions
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
ACCESS_TOKEN_SECRET=83b2dbc4806e1d18c351a51e2397e09d0b54f796e1a8e1fea6beec3bee99c6b14dd0a632c00be509d5b5a024333aa4ddc7bc6b4cc130d9fa49eb55739312925c |
||||
REFRESH_TOKEN_SECRET=eb32a881a9f541443e0027524bdac53b0a90d78b0d5a2c5abbdc0acd9bf248355e2c90a8f6ae8500e2e7298fd3f57bd89ce1f88e9a023fa4f19caef71c3a2a4d |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
{ |
||||
"name": "true_jwt", |
||||
"version": "1.0.0", |
||||
"description": "", |
||||
"main": "index.js", |
||||
"scripts": { |
||||
"devStart": "nodemon server.js", |
||||
"test": "echo \"Error: no test specified\" && exit 1" |
||||
}, |
||||
"keywords": [], |
||||
"author": "", |
||||
"license": "ISC", |
||||
"dependencies": { |
||||
"dotenv": "^16.0.1", |
||||
"express": "^4.18.1", |
||||
"jsonwebtoken": "^8.5.1" |
||||
}, |
||||
"devDependencies": { |
||||
"nodemon": "^2.0.19" |
||||
} |
||||
} |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
GET http://localhost:4000/posts |
||||
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiUmVpbXUiLCJpYXQiOjE2NjE3NjQ4Njl9.2h9bt6SOF3Rz79q7S7oY8T0nkiEoRGLLXJRzHHdhkaA |
||||
|
||||
### |
||||
|
||||
POST http://localhost:4000/login |
||||
Content-Type: application/json |
||||
|
||||
{ |
||||
"username": "Reimu" |
||||
} |
Loading…
Reference in new issue