@@ -439,6 +439,48 @@ export default class Wrapper {
439439 return Webauthn . getInstanceOrThrow ( ) . webJSRecipe . registerCredentialWithRecoverAccount ( input ) ;
440440 }
441441
442+ static listCredentials ( input : { options ?: RecipeFunctionOptions ; userContext : any } ) : Promise <
443+ | {
444+ status : "OK" ;
445+ credentials : {
446+ webauthnCredentialId : string ;
447+ relyingPartyId : string ;
448+ recipeUserId : string ;
449+ createdAt : number ;
450+ } [ ] ;
451+ }
452+ | GeneralErrorResponse
453+ > {
454+ return Webauthn . getInstanceOrThrow ( ) . webJSRecipe . listCredentials ( input ) ;
455+ }
456+
457+ static removeCredential ( input : {
458+ webauthnCredentialId : string ;
459+ userContext : any ;
460+ } ) : Promise <
461+ { status : "OK" } | GeneralErrorResponse | { status : "CREDENTIAL_NOT_FOUND_ERROR" ; fetchResponse : Response }
462+ > {
463+ return Webauthn . getInstanceOrThrow ( ) . webJSRecipe . removeCredential ( input ) ;
464+ }
465+
466+ static registerCredential2 ( input : {
467+ recipeUserId : string ;
468+ webauthnGeneratedOptionsId : string ;
469+ credential : RegistrationResponseJSON ;
470+ options ?: RecipeFunctionOptions ;
471+ userContext : any ;
472+ } ) : Promise <
473+ | { status : "OK" }
474+ | GeneralErrorResponse
475+ | { status : "REGISTER_CREDENTIAL_NOT_ALLOWED" ; reason : string }
476+ | { status : "INVALID_CREDENTIALS_ERROR" }
477+ | { status : "OPTIONS_NOT_FOUND_ERROR" }
478+ | { status : "INVALID_OPTIONS_ERROR" }
479+ | { status : "INVALID_AUTHENTICATOR_ERROR" ; reason : string }
480+ > {
481+ return Webauthn . getInstanceOrThrow ( ) . webJSRecipe . registerCredential2 ( input ) ;
482+ }
483+
442484 static doesBrowserSupportWebAuthn ( input : { userContext : any } ) : Promise <
443485 | {
444486 status : "OK" ;
@@ -469,6 +511,9 @@ const authenticateCredential = Wrapper.authenticateCredential;
469511const registerCredentialWithSignUp = Wrapper . registerCredentialWithSignUp ;
470512const authenticateCredentialWithSignIn = Wrapper . authenticateCredentialWithSignIn ;
471513const registerCredentialWithRecoverAccount = Wrapper . registerCredentialWithRecoverAccount ;
514+ const listCredentials = Wrapper . listCredentials ;
515+ const removeCredential = Wrapper . removeCredential ;
516+ const registerCredential2 = Wrapper . registerCredential2 ;
472517const doesBrowserSupportWebAuthn = Wrapper . doesBrowserSupportWebAuthn ;
473518const WebauthnComponentsOverrideProvider = Wrapper . ComponentsOverrideProvider ;
474519
@@ -488,4 +533,7 @@ export {
488533 registerCredentialWithRecoverAccount ,
489534 doesBrowserSupportWebAuthn ,
490535 WebauthnComponentsOverrideProvider ,
536+ listCredentials ,
537+ removeCredential ,
538+ registerCredential2 ,
491539} ;
0 commit comments