Skip to content

Commit

Permalink
pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niftyvictor committed Oct 28, 2024
1 parent 3fa31ce commit 177b580
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/ts/recipe/webauthn/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ type ConsumeRecoverAccountTokenErrorResponse = { status: "RECOVER_ACCOUNT_TOKEN_

type RemoveCredentialErrorResponse = { status: "CREDENTIAL_NOT_FOUND_ERROR" };

type GetCredentialErrorResponse = { status: "CREDENTIAL_NOT_FOUND_ERROR" };

type DecodeCredentialErrorResponse = { status: "WRONG_CREDENTIALS_ERROR" };

type Base64URLString = string;
Expand Down Expand Up @@ -394,11 +396,12 @@ export type RecipeInterface = {
status: "OK";
credential: {
id: string;
rp_id: string;
created_at: number;
rpId: string;
recipeUserId: RecipeUserId;
createdAt: number;
};
}
| RemoveCredentialErrorResponse
| GetCredentialErrorResponse
>;

listCredentials(input: {
Expand All @@ -408,8 +411,8 @@ export type RecipeInterface = {
status: "OK";
credentials: {
id: string;
rp_id: string;
created_at: number;
rpId: string;
createdAt: number;
}[];
}>;
};
Expand Down

0 comments on commit 177b580

Please sign in to comment.