9
Bearer Token怎么用?
source link: https://xmanyou.com/bearer-token-usage-sample/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
3 June 2021
/ 开发笔记
Bearer Token怎么用?
Bearer Token拿到以后,需要在http请求中,添加header:
Authorization: Bearer <token>
curl -X 'GET' \
'http://localhost:1337/games/count' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjIyNjg2MjUzLCJleHAiOjE2MjUyNzgyNTN9.Fs9AhAgpBvSBy'
阿斌
Read more posts by this author.
扫一扫关注微信公众号:耿直的IT男阿斌
聊一聊IT男眼中的世界
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK