Skip to content

Commit

Permalink
8.18. Добавит запрос для проверки состояния пользователя.
Browse files Browse the repository at this point in the history
Добавим запрос для ресурса `GET /login`, чтобы клиент мог проверить токен на актуальность.
  • Loading branch information
AntonovIgor committed Feb 20, 2024
1 parent 8a428e9 commit 0f8b6f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/shared/modules/user/user.http
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@ Content-Type: image/png
< /Users/spider_net/Desktop/screen.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--

##
###

## Проверить токен пользователя
GET http://localhost:4000/users/login HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InRvcmFuc0BvdmVybG9vay5uZXQiLCJpZCI6IjY0NzBiYzM4M2UzMGRiNjc5ZGZhYzJkMiIsImlhdCI6MTY4NTk3NTQ4MiwiZXhwIjoxNjg2MTQ4MjgyfQ.Gq2-B1egouAnMxmXlR2ElVT6wCa97PS6lxzVI8LnGvo

###

0 comments on commit 0f8b6f1

Please sign in to comment.