Skip to main content
Version: 5.7.0

ResetUniversalIdPasswordAdvancedWithExpiry

Advanced universalId password reset using templates. Allows the developer to specify how long the URL is valid for (in minutes).

ServiceOperation
authenticationV2RESET_UNIVERSAL_ID_PASSWORD_ADVANCED_WITH_EXPIRY

Method Parameters

ParameterDescription
universalIdThe universalId to send the reset email to.
serviceParamsSet of parameters dependant on the mail service configured.
tokenTtlInMinutesThe time-to-live for the password reset url, in minutes.

Usage

http://localhost:3000
string universalId = "universalId";
string serviceParams = "{\"templateId\":\"template-id-guid\",\"substitutions\":{\"aKey\":\"aValue\"},\"categories\":[\"category1\",\"category2\"]}";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.AuthenticationService.ResetUniversalIdPasswordAdvancedWithExpiry(universalId, serviceParams, tokenTtlInMinutes, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}