File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
packages/wallet/wdk/src/sequence/handlers Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export class GuardHandler implements Handler {
9494 resolve ( true )
9595 } catch ( e ) {
9696 if ( e instanceof Guard . AuthRequiredError ) {
97- const respond : RespondFn = async ( id : 'TOTP' | 'PIN' | 'recovery' , code : string ) => {
97+ const respond : RespondFn = async ( id , code ) => {
9898 try {
9999 const signature = await guard . signEnvelope ( request . envelope , { id, code } )
100100 await this . signatures . addSignature ( request . id , signature )
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export class MnemonicHandler implements Handler {
9595 message : 'enter-mnemonic' ,
9696 handle : ( ) =>
9797 new Promise ( async ( resolve , reject ) => {
98- const respond : RespondFn = async ( mnemonic : string ) => {
98+ const respond : RespondFn = async ( mnemonic ) => {
9999 const signer = MnemonicHandler . toSigner ( mnemonic )
100100 if ( ! signer ) {
101101 return reject ( 'invalid-mnemonic' )
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export class OtpHandler extends IdentityHandler implements Handler {
9999 try {
100100 const { loginHint, challenge : codeChallenge } = await this . nitroCommitVerifier ( challenge )
101101
102- const respond : RespondFn = async ( otp : string ) => {
102+ const respond : RespondFn = async ( otp ) => {
103103 try {
104104 const { signer, email : returnedEmail } = await this . nitroCompleteAuth (
105105 challenge . withAnswer ( codeChallenge , otp ) ,
You can’t perform that action at this time.
0 commit comments