@azure/msal-browser
Version:
Microsoft Authentication Library for js
30 lines (26 loc) • 980 B
text/typescript
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { AuthFlowActionRequiredStateBase } from "../../../core/auth_flow/AuthFlowState.js";
import { ensureArgumentIsNotEmptyString } from "../../../core/utils/ArgumentValidator.js";
import { ResetPasswordStateParameters } from "./ResetPasswordStateParameters.js";
/*
* Base state handler for reset password operation.
*/
export abstract class ResetPasswordState<
TParameters extends ResetPasswordStateParameters
> extends AuthFlowActionRequiredStateBase<TParameters> {
/*
* Creates a new state for reset password operation.
* @param stateParameters - The state parameters for reset-password.
*/
constructor(stateParameters: TParameters) {
super(stateParameters);
ensureArgumentIsNotEmptyString(
"username",
this.stateParameters.username,
this.stateParameters.correlationId
);
}
}