File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class GoTrueMFAApi {
28
28
29
29
/// Starts the enrollment process for a new Multi-Factor Authentication (MFA) factor.
30
30
/// This method creates a new `unverified` factor.
31
- ///
31
+ ///
32
32
/// For TOTP: To verify a factor, present the QR code or secret to the user and ask them to add it to their authenticator app.
33
33
/// For Phone: The user will receive an SMS with a verification code.
34
34
///
@@ -50,12 +50,12 @@ class GoTrueMFAApi {
50
50
String ? phone,
51
51
}) async {
52
52
final session = _client.currentSession;
53
-
53
+
54
54
final body = < String , dynamic > {
55
55
'friendly_name' : friendlyName,
56
56
'factor_type' : factorType.name,
57
57
};
58
-
58
+
59
59
if (factorType == FactorType .totp) {
60
60
body['issuer' ] = issuer;
61
61
} else if (factorType == FactorType .phone) {
@@ -64,7 +64,7 @@ class GoTrueMFAApi {
64
64
}
65
65
body['phone' ] = phone;
66
66
}
67
-
67
+
68
68
final data = await _fetch.request (
69
69
'${_client ._url }/factors' ,
70
70
RequestMethodType .post,
You can’t perform that action at this time.
0 commit comments