-
What does the I was doing curl -X 'POST' \
'http://my.server:5000/api/v1/book' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"author": "the author",
"book_attrs": {
"description": "book description",
"picture": "book picture string",
"rating": 10
},
"book_status": 0,
"created_at": "2023-08-23",
"id": "id1",
"title": "book title",
"updated_at": "2023-08-24",
"user_id": "uid2"
}' and I got: {
"error": true,
"msg": "missing or malformed JWT"
} What does it mean exactly and how should I fixed it? thx. |
Beta Was this translation helpful? Give feedback.
Answered by
koddr
Aug 24, 2023
Replies: 1 comment
-
Hi, First, read up on how JWT works. For example, here: https://jwt.io/introduction Next, your request lacks a header where the previously generated JWT will be passed. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
suntong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
First, read up on how JWT works. For example, here: https://jwt.io/introduction
Next, your request lacks a header where the previously generated JWT will be passed.