deleteOauthProviders method

Future<TDeleteOauthProvidersResponse> deleteOauthProviders({
  1. required TDeleteOauthProvidersBody input,
})

Remove Oauth providers for a specified user.

Sign the provided TDeleteOauthProvidersBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_oauth_providers).

See also: stampDeleteOauthProviders.

Implementation

Future<TDeleteOauthProvidersResponse> deleteOauthProviders({
  required TDeleteOauthProvidersBody input,
}) async {
  final body = packActivityBody(
    bodyJson: input.toJson(),
    fallbackOrganizationId: input.organizationId ??
        config.organizationId ??
        (throw Exception(
            "Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
    activityType: 'ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS',
  );
  return await request<Map<String, dynamic>, TDeleteOauthProvidersResponse>(
      "/public/v1/submit/delete_oauth_providers",
      body,
      (json) => TDeleteOauthProvidersResponse.fromJson(
          transformActivityResponse(json, 'DeleteOauthProviders')));
}