@@ -138,6 +138,7 @@ public interface IFusionAuthAsyncClient {
138138 /// contacted because it is down or experiencing a failure, the response will contain an Exception, which could be an
139139 /// IOException.
140140 /// </returns>
141+ [Obsolete("This method has been renamed to ChangePasswordUsingJWTAsync, use that method instead.")]
141142 Task<ClientResponse<ChangePasswordResponse>> ChangePasswordByJWTAsync(string encodedJWT, ChangePasswordRequest request);
142143
143144 /// <summary>
@@ -155,6 +156,23 @@ public interface IFusionAuthAsyncClient {
155156 /// </returns>
156157 Task<ClientResponse<RESTVoid>> ChangePasswordByIdentityAsync(ChangePasswordRequest request);
157158
159+ /// <summary>
160+ /// Changes a user's password using their access token (JWT) instead of the changePasswordId
161+ /// A common use case for this method will be if you want to allow the user to change their own password.
162+ ///
163+ /// Remember to send refreshToken in the request body if you want to get a new refresh token when login using the returned oneTimePassword.
164+ /// This is an asynchronous method.
165+ /// </summary>
166+ /// <param name="encodedJWT"> The encoded JWT (access token).</param>
167+ /// <param name="request"> The change password request that contains all the information used to change the password.</param>
168+ /// <returns>
169+ /// When successful, the response will contain the log of the action. If there was a validation error or any
170+ /// other type of error, this will return the Errors object in the response. Additionally, if FusionAuth could not be
171+ /// contacted because it is down or experiencing a failure, the response will contain an Exception, which could be an
172+ /// IOException.
173+ /// </returns>
174+ Task<ClientResponse<ChangePasswordResponse>> ChangePasswordUsingJWTAsync(string encodedJWT, ChangePasswordRequest request);
175+
158176 /// <summary>
159177 /// Check to see if the user must obtain a Trust Token Id in order to complete a change password request.
160178 /// When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
@@ -5087,6 +5105,7 @@ public interface IFusionAuthSyncClient {
50875105 /// contacted because it is down or experiencing a failure, the response will contain an Exception, which could be an
50885106 /// IOException.
50895107 /// </returns>
5108+ [Obsolete("This method has been renamed to ChangePasswordUsingJWTAsync, use that method instead.")]
50905109 ClientResponse<ChangePasswordResponse> ChangePasswordByJWT(string encodedJWT, ChangePasswordRequest request);
50915110
50925111 /// <summary>
@@ -5103,6 +5122,22 @@ public interface IFusionAuthSyncClient {
51035122 /// </returns>
51045123 ClientResponse<RESTVoid> ChangePasswordByIdentity(ChangePasswordRequest request);
51055124
5125+ /// <summary>
5126+ /// Changes a user's password using their access token (JWT) instead of the changePasswordId
5127+ /// A common use case for this method will be if you want to allow the user to change their own password.
5128+ ///
5129+ /// Remember to send refreshToken in the request body if you want to get a new refresh token when login using the returned oneTimePassword.
5130+ /// </summary>
5131+ /// <param name="encodedJWT"> The encoded JWT (access token).</param>
5132+ /// <param name="request"> The change password request that contains all the information used to change the password.</param>
5133+ /// <returns>
5134+ /// When successful, the response will contain the log of the action. If there was a validation error or any
5135+ /// other type of error, this will return the Errors object in the response. Additionally, if FusionAuth could not be
5136+ /// contacted because it is down or experiencing a failure, the response will contain an Exception, which could be an
5137+ /// IOException.
5138+ /// </returns>
5139+ ClientResponse<ChangePasswordResponse> ChangePasswordUsingJWT(string encodedJWT, ChangePasswordRequest request);
5140+
51065141 /// <summary>
51075142 /// Check to see if the user must obtain a Trust Token Id in order to complete a change password request.
51085143 /// When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
0 commit comments