diff --git a/pages/api.md b/pages/api.md index a3649fee..d5b12042 100644 --- a/pages/api.md +++ b/pages/api.md @@ -16,10 +16,10 @@ There are two options here: ``` $ curl -k --user admin:admin https://pikvm/api/auth/check ``` -#### Session-based (token) auth +#### Session-based cookie auth 1. Authorize and get token for the user using `POST /api/auth/login`: ``` - $ curl -k -vv -X POST --data user=admin --data passwd=admin https://pikvm/api/auth/login + $ curl -k -v -X POST --data user=admin --data passwd=admin https://pikvm/api/auth/login ... < Set-Cookie: auth_token=796cb83b11de4fcb749bc1bad14a91fb06dede84672b2f847fef1e988e6900de; Path=/ ...