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 {
2828
2929 /// Starts the enrollment process for a new Multi-Factor Authentication (MFA) factor.
3030 /// This method creates a new `unverified` factor.
31- ///
31+ ///
3232 /// 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.
3333 /// For Phone: The user will receive an SMS with a verification code.
3434 ///
@@ -50,12 +50,12 @@ class GoTrueMFAApi {
5050 String ? phone,
5151 }) async {
5252 final session = _client.currentSession;
53-
53+
5454 final body = < String , dynamic > {
5555 'friendly_name' : friendlyName,
5656 'factor_type' : factorType.name,
5757 };
58-
58+
5959 if (factorType == FactorType .totp) {
6060 body['issuer' ] = issuer;
6161 } else if (factorType == FactorType .phone) {
@@ -64,7 +64,7 @@ class GoTrueMFAApi {
6464 }
6565 body['phone' ] = phone;
6666 }
67-
67+
6868 final data = await _fetch.request (
6969 '${_client ._url }/factors' ,
7070 RequestMethodType .post,
You can’t perform that action at this time.
0 commit comments