From ac0bee0635f6c076cd7b6a97805da4db757867bc Mon Sep 17 00:00:00 2001 From: ieow Date: Mon, 9 Oct 2023 11:24:08 +0800 Subject: [PATCH] fix: update interface --- src/constants.ts | 2 ++ src/interfaces.ts | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index 5fb6f3a8..52649d06 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -32,6 +32,8 @@ export enum FactorKeyTypeShareDescription { SeedPhrase = "seedPhrase", PasswordShare = "passwordShare", SocialShare = "socialShare", + MobileSMS = "mobileSMS", + AuthenticatorApp = "authenticatorApp", Other = "Other", } diff --git a/src/interfaces.ts b/src/interfaces.ts index 386c9a6e..a6fc24c6 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -72,11 +72,23 @@ export interface EnableMFAParams { additionalMetadata?: Record; } -export interface CreateFactorParams extends EnableMFAParams { +export interface CreateFactorParams { /** * Setting the Type of Share - Device or Recovery. **/ shareType: TssShareType; + /** + * A BN used for encrypting your Device/ Recovery TSS Key Share. You can generate it using `generateFactorKey()` function or use an existing one. + */ + factorKey?: BN; + /** + * Setting the Description of Share - Security Questions, Device Share, Seed Phrase, Password Share, Social Share, Other. Default is Other. + */ + shareDescription?: FactorKeyTypeShareDescription; + /** + * Additional metadata information you want to be stored alongside this factor for easy identification. + */ + additionalMetadata?: Record; } export interface IdTokenLoginParams {