【发布时间】:2022-12-20 04:56:50
【问题描述】:
我正在请求获取 auth0 API 的 access_token。 请求成功,但包含访问令牌的数据对象包含奇怪的字符。问题是我拥有那个物品 3-4 个小时,之后就再也没有找回过它。有什么线索吗?
这是代码:
(async () => {
const client = axios.create({
baseURL: 'https://my_url_to.auth0.com/oauth/token',
headers: {
'Content-Type': 'application/json'
}
});
Log.debug(body);
try {
const resp = await client.post('/', body);
console.log(JSON.stringify(resp.data));
} catch (e) {
Log.error(e);
}
})();
【问题讨论】:
标签: axios