7.25 渗透测试 前端secret修复,修改刷新token接口和code换token接口

This commit is contained in:
jl-zhoujl2
2023-07-25 15:05:29 +08:00
parent ff4671994e
commit 71f53b3268
13 changed files with 29 additions and 52 deletions

View File

@ -228,13 +228,8 @@ const Index: React.FC<{}> = () => {
const params = {
grant_type: "refresh_token",
refresh_token: data?.refreshToken?.value,
client_id: REACT_APP_CLIENT_KEY,
client_secret: REACT_APP_CLIENT_SECRET,
}
const header = {
clientId: REACT_APP_CLIENT_KEY,
}
await refreshTokenApi(params, header).then(res => {
await refreshTokenApi(params).then(res => {
if (res?.success == true) {
sessionStorage.setItem('Authorization', res?.data?.value);
// sessionStorage.setItem('refreshToken', res?.data?.refreshToken.value);