[英]What is the correct way to pass token from external server to specific api route?
[英]What is the best way to handle bearer token from external server/api
您可以像這樣從請求標頭中獲取不記名令牌
let bearerToken = req.headers.authorization;
之后,您可以將此令牌傳遞給您的外部 API
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.