React Oauth 麻烦

问题描述 投票:0回答:0

我如何在我的 React 应用程序中创建 Steam oauth,我应该如何获取代码,即从 Steam 授权页面返回的代码?

现在我的结果是 .get("games/1/players/28/oauth2/link/", { 标头:{授权:

Bearer ${tokens.access_token}
}, }) .then((res) => { window.open(res.data.url); }) .catch((e) => { 控制台日志(e); }); 并且它只打开 steam 授权页面,没有重定向。我还需要调用 post 方法从 steam auth 发送代码

reactjs oauth-2.0 oauth steam steam-web-api
© www.soinside.com 2019 - 2024. All rights reserved.