Upload files to ''
This commit is contained in:
parent
de4a76a144
commit
117987a187
2
.env
Normal file
2
.env
Normal file
@ -0,0 +1,2 @@
|
||||
ACCESS_TOKEN_SECRET=83b2dbc4806e1d18c351a51e2397e09d0b54f796e1a8e1fea6beec3bee99c6b14dd0a632c00be509d5b5a024333aa4ddc7bc6b4cc130d9fa49eb55739312925c
|
||||
REFRESH_TOKEN_SECRET=eb32a881a9f541443e0027524bdac53b0a90d78b0d5a2c5abbdc0acd9bf248355e2c90a8f6ae8500e2e7298fd3f57bd89ce1f88e9a023fa4f19caef71c3a2a4d
|
1856
package-lock.json
generated
Normal file
1856
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
21
package.json
Normal file
21
package.json
Normal file
@ -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
Normal file
11
request.rest
Normal file
@ -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
Normal file
8
true_jwt.code-workspace
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user