Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niftyvictor committed Feb 6, 2025
1 parent 7c5e3c8 commit 9508175
Show file tree
Hide file tree
Showing 8 changed files with 374 additions and 581 deletions.
4 changes: 2 additions & 2 deletions lib/build/recipe/webauthn/recipeImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ function getRecipeInterface(querier, getWebauthnConfig) {
},
listCredentials: async function ({ recipeUserId, userContext }) {
return await querier.sendGetRequest(
new normalisedURLPath_1.default(`/recipe/webauthn/user/${recipeUserId}/credential/list`),
{},
new normalisedURLPath_1.default(`/recipe/webauthn/user/credential/list`),
{ recipeUserId },
userContext
);
},
Expand Down
2 changes: 1 addition & 1 deletion lib/build/recipe/webauthn/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export declare type RecipeInterface = {
}
>;
listCredentials(input: {
recipeUserId: RecipeUserId;
recipeUserId: string;
userContext: UserContext;
}): Promise<{
status: "OK";
Expand Down
4 changes: 2 additions & 2 deletions lib/ts/recipe/webauthn/recipeImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ export default function getRecipeInterface(

listCredentials: async function ({ recipeUserId, userContext }) {
return await querier.sendGetRequest(
new NormalisedURLPath(`/recipe/webauthn/user/${recipeUserId}/credential/list`),
{},
new NormalisedURLPath(`/recipe/webauthn/user/credential/list`),
{ recipeUserId },
userContext
);
},
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/recipe/webauthn/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export type RecipeInterface = {
>;

listCredentials(input: {
recipeUserId: RecipeUserId;
recipeUserId: string;
userContext: UserContext;
}): Promise<{
status: "OK";
Expand Down
Loading

0 comments on commit 9508175

Please sign in to comment.