Skip to content

Commit b33711c

Browse files
committed
Add missing mfaSettings
1 parent bb56a42 commit b33711c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/sdk/pnp/flutter/mfa.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,16 @@ class MfaSettings {
110110
final MfaSetting? backUpShareFactor;
111111
final MfaSetting? socialBackupFactor;
112112
final MfaSetting? passwordFactor;
113+
final MfaSetting? passkeysFactor;
114+
final MfaSetting? authenticatorFactor;
113115
114116
MfaSettings({
115117
this.deviceShareFactor,
116118
this.backUpShareFactor,
117119
this.socialBackupFactor,
118120
this.passwordFactor,
121+
this.passkeysFactor,
122+
this.authenticatorFactor,
119123
});
120124
121125
Map<String, dynamic> toJson() {
@@ -124,6 +128,8 @@ class MfaSettings {
124128
'backUpShareFactor': backUpShareFactor,
125129
'socialBackupFactor': socialBackupFactor,
126130
'passwordFactor': passwordFactor,
131+
'passkeysFactor': passkeysFactor,
132+
'authenticatorFactor': authenticatorFactor,
127133
};
128134
}
129135
}
@@ -214,6 +220,16 @@ Future<void> initWeb3Auth() async {
214220
priority: 1,
215221
mandatory: true,
216222
),
223+
passkeysFactor: MfaSetting(
224+
enable: true,
225+
priority: 5,
226+
mandatory: true,
227+
),
228+
authenticatorFactor: MfaSetting(
229+
enable: true,
230+
priority: 6,
231+
mandatory: true,
232+
),
217233
),
218234
// focus-end
219235
);

0 commit comments

Comments
 (0)