Browse Source

Upload files to ''

master
okasion 2 years ago
parent
commit
117987a187
  1. 2
      .env
  2. 1856
      package-lock.json
  3. 21
      package.json
  4. 11
      request.rest
  5. 8
      true_jwt.code-workspace

2
.env

@ -0,0 +1,2 @@
ACCESS_TOKEN_SECRET=83b2dbc4806e1d18c351a51e2397e09d0b54f796e1a8e1fea6beec3bee99c6b14dd0a632c00be509d5b5a024333aa4ddc7bc6b4cc130d9fa49eb55739312925c
REFRESH_TOKEN_SECRET=eb32a881a9f541443e0027524bdac53b0a90d78b0d5a2c5abbdc0acd9bf248355e2c90a8f6ae8500e2e7298fd3f57bd89ce1f88e9a023fa4f19caef71c3a2a4d

1856
package-lock.json generated

File diff suppressed because it is too large Load Diff

21
package.json

@ -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"
}
}

11
request.rest

@ -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"
}

8
true_jwt.code-workspace

@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}
Loading…
Cancel
Save