9

Bearer Token怎么用?

 3 years ago
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.
neoserver,ios ssh client
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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK