Skip to content

Commit edece3b

Browse files
authored
docs(authentication): fix curl response payload
1 parent 2bf46e6 commit edece3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/security/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ Ensure the app is running, and test the routes using `cURL`.
761761
```bash
762762
$ # GET /profile
763763
$ curl http://localhost:3000/profile
764-
$ # result -> {"statusCode":401,"error":"Unauthorized"}
764+
$ # result -> {"statusCode":401,"message":"Unauthorized"}
765765

766766
$ # POST /auth/login
767767
$ curl -X POST http://localhost:3000/auth/login -d '{"username": "john", "password": "changeme"}' -H "Content-Type: application/json"

0 commit comments

Comments
 (0)