add refresh token

This commit is contained in:
Roland Schneider
2025-11-14 15:28:38 +01:00
parent f4c0bb0b76
commit 42158d1fd4
5 changed files with 36 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
POST http://localhost:3000/auth/login
POST {{apiBaseUrl}}/auth/login
Content-Type: application/json
{
@@ -6,10 +6,10 @@ Content-Type: application/json
"password": "123456"
}
> {% client.global.set("auth_token", response.body.access_token); %}
> {% client.global.set("auth_token", response.body.accessToken); %}
### GET request with parameter
GET http://localhost:3000/users
GET {{apiBaseUrl}}/users
Accept: application/json
Authorization: Bearer {{auth_token}}

View File

@@ -0,0 +1,5 @@
{
"dev": {
"apiBaseUrl": "http://localhost:3000/api"
}
}