jingrow/app/api/auth.js
2025-06-17 15:23:37 +08:00

10 lines
362 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 获取Jingrow API认证头部通用方法
export function get_jingrow_api_headers() {
// 这里应根据实际情况实现获取token等逻辑
const apiKey = process.env.JINGROW_API_KEY;
const apiSecret = process.env.JINGROW_API_SECRET;
return {
'Authorization': `token ${apiKey}:${apiSecret}`,
'Content-Type': 'application/json'
};
}