updateVerification method

Future<Response> updateVerification({
  1. required String userId,
  2. required String secret,
})

Complete Email Verification

Use this endpoint to complete the user email verification process. Use both the userId and secret parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.

Implementation

Future<req.Response> updateVerification(
    {required String userId, required String secret}) {
  final String path = '/account/verification';

  final Map<String, dynamic> params = {
    'userId': userId,
    'secret': secret,
  };

  final Map<String, String> headers = {
    'content-type': 'application/json',
  };

  return client.call(HttpMethod.put,
      path: path, params: params, headers: headers);
}