mirror of
https://github.com/zoriya/blog.git
synced 2025-12-05 22:16:10 +00:00
14 lines
390 B
Plaintext
14 lines
390 B
Plaintext
POST http://localhost:7891/auth/user
|
|
{ "name": "pina" }
|
|
HTTP 201
|
|
[Captures]
|
|
session_token: jsonpath "$['token']"
|
|
|
|
GET http://localhost:7891/api/me
|
|
authorization: Bearer {{session_token}}
|
|
HTTP 200
|
|
[Asserts]
|
|
jsonpath "$['sub']" == "pina"
|
|
jsonpath "$['iss']" == "keibi-blog"
|
|
jsonpath "$['exp']" toString toDate "%s" daysAfterNow <= 1
|
|
jsonpath "$['iat']" toString toDate "%s" daysBeforeNow == 0 |