Skip to content

Commit 0ab304a

Browse files
committed
fix: minor webauthn api fixes
1 parent 14214d8 commit 0ab304a

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

lib/build/recipe/webauthn/api/listCredentials.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/webauthn/constants.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/webauthn/constants.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/webauthn/api/listCredentials.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ export default async function listCredentialsAPI(
4444
});
4545

4646
if (result.status === "OK") {
47-
send200Response(options.res, {
48-
status: "OK",
49-
});
47+
send200Response(options.res, result);
5048
} else {
5149
send200Response(options.res, result);
5250
}

lib/ts/recipe/webauthn/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const RECOVER_ACCOUNT_API = "/user/webauthn/reset";
2727

2828
export const SIGNUP_EMAIL_EXISTS_API = "/webauthn/email/exists";
2929

30-
export const LIST_CREDENTIALS_API = "/webauthn/credential";
30+
export const LIST_CREDENTIALS_API = "/webauthn/credential/list";
3131

3232
export const REGISTER_CREDENTIAL_API = "/webauthn/credential";
3333

0 commit comments

Comments
 (0)