Skip to content

Commit 37d3959

Browse files
committed
fix: add mfa type in afterfind
1 parent 4bd7b1f commit 37d3959

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Adapters/Auth/mfa.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,16 +272,19 @@ class MFAAdapter extends AuthAdapter {
272272
if (this.totp && authData.secret) {
273273
return {
274274
status: 'enabled',
275+
type: 'TOTP',
275276
};
276277
}
277278
if (this.sms && authData.mobile) {
278279
return {
279280
status: 'enabled',
281+
type: 'SMS',
280282
};
281283
}
282284
if (this.email && authData.email) {
283285
return {
284286
status: 'enabled',
287+
type: 'EMAIL',
285288
};
286289
}
287290
return {

0 commit comments

Comments
 (0)