Skip to content

Commit

Permalink
Fix method used for getting user details from recover account token
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30-st committed Feb 5, 2025
1 parent 88377de commit a0155f2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/build/recipe/webauthn/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export declare const DEFAULT_REGISTER_OPTIONS_RESIDENT_KEY = "required";
export declare const DEFAULT_REGISTER_OPTIONS_USER_VERIFICATION = "preferred";
export declare const DEFAULT_REGISTER_OPTIONS_SUPPORTED_ALGORITHM_IDS: number[];
export declare const DEFAULT_SIGNIN_OPTIONS_USER_VERIFICATION = "preferred";
export declare const DEFAULT_REGISTER_OPTIONS_TIMEOUT = 5000;
export declare const DEFAULT_REGISTER_OPTIONS_TIMEOUT = 10000;
export declare const DEFAULT_SIGNIN_OPTIONS_TIMEOUT = 5000;
2 changes: 1 addition & 1 deletion lib/build/recipe/webauthn/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ exports.DEFAULT_REGISTER_OPTIONS_RESIDENT_KEY = "required";
exports.DEFAULT_REGISTER_OPTIONS_USER_VERIFICATION = "preferred";
exports.DEFAULT_REGISTER_OPTIONS_SUPPORTED_ALGORITHM_IDS = [-8, -7, -257];
exports.DEFAULT_SIGNIN_OPTIONS_USER_VERIFICATION = "preferred";
exports.DEFAULT_REGISTER_OPTIONS_TIMEOUT = 5000;
exports.DEFAULT_REGISTER_OPTIONS_TIMEOUT = 10000;
exports.DEFAULT_SIGNIN_OPTIONS_TIMEOUT = 5000;
2 changes: 1 addition & 1 deletion lib/build/recipe/webauthn/recipeImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function getRecipeInterface(querier, getWebauthnConfig) {
};
},
getUserFromRecoverAccountToken: async function ({ token, tenantId, userContext }) {
return await querier.sendGetRequest(
return await querier.sendPostRequest(
new normalisedURLPath_1.default(
`/${
tenantId === undefined ? constants_1.DEFAULT_TENANT_ID : tenantId
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/recipe/webauthn/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export const DEFAULT_REGISTER_OPTIONS_SUPPORTED_ALGORITHM_IDS = [-8, -7, -257];

export const DEFAULT_SIGNIN_OPTIONS_USER_VERIFICATION = "preferred";

export const DEFAULT_REGISTER_OPTIONS_TIMEOUT = 5000;
export const DEFAULT_REGISTER_OPTIONS_TIMEOUT = 10000;

export const DEFAULT_SIGNIN_OPTIONS_TIMEOUT = 5000;
2 changes: 1 addition & 1 deletion lib/ts/recipe/webauthn/recipeImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default function getRecipeInterface(
},

getUserFromRecoverAccountToken: async function ({ token, tenantId, userContext }) {
return await querier.sendGetRequest(
return await querier.sendPostRequest(
new NormalisedURLPath(
`/${tenantId === undefined ? DEFAULT_TENANT_ID : tenantId}/recipe/webauthn/user/recover/token`
),
Expand Down

0 comments on commit a0155f2

Please sign in to comment.