Add getOAuthGetParameters().

This commit is contained in:
Yang Luo
2021-03-20 16:51:10 +08:00
parent 63a4066a8d
commit f89f454e0e
4 changed files with 35 additions and 14 deletions

View File

@ -46,7 +46,8 @@ class AuthCallback extends React.Component {
redirectUri: redirectUri,
method: this.state.method,
};
AuthBackend.login(body)
const oAuthParams = Util.getOAuthGetParameters();
AuthBackend.login(body, oAuthParams)
.then((res) => {
if (res.status === "ok") {
window.location.href = '/';