feat: fix sign in error via webauthn (#1398)

* fix: fix sign in error via webauthn

* fix review problems
This commit is contained in:
Mr Forest 2022-12-13 16:57:42 +08:00 committed by GitHub
parent c5ef841d3f
commit e473de3162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -661,7 +661,7 @@ class LoginPage extends React.Component {
const rawId = assertion.rawId;
const sig = assertion.response.signature;
const userHandle = assertion.response.userHandle;
return fetch(`${Setting.ServerUrl}/api/webauthn/signin/finish${AuthBackend.oAuthParamsToQuery(oAuthParams)}`, {
return fetch(`${Setting.ServerUrl}/api/webauthn/signin/finish?responseType=${values["type"]}`, {
method: "POST",
credentials: "include",
body: JSON.stringify({