resendVerificationCode method

Future<APIError?> resendVerificationCode(
  1. String phone
)

Resends the code to verify the user's phone number. If the user's phone has already been validated or phone confirmation is disabled in your app authentication settings, it returns an error.

phone The phone number of the user to send the verification SMS code.

Implementation

Future<APIError?> resendVerificationCode(String phone) async =>
    (await _fetcher.post<dynamic>(
            '/_api/rest/v1/auth/resend-code${encodeUriParameters({
          'phone': phone
        })}'))
        .errors;