supertokens-node
    Preparing search index...

    Variable resetPasswordUsingToken

    resetPasswordUsingToken: (
        tenantId: string,
        token: string,
        newPassword: string,
        userContext?: Record<string, any>,
    ) => Promise<
        | {
            status: | "OK"
            | "UNKNOWN_USER_ID_ERROR"
            | "RESET_PASSWORD_INVALID_TOKEN_ERROR";
        }
        | { failureReason: string; status: "PASSWORD_POLICY_VIOLATED_ERROR" },
    > = Wrapper.resetPasswordUsingToken

    Type declaration

      • (
            tenantId: string,
            token: string,
            newPassword: string,
            userContext?: Record<string, any>,
        ): Promise<
            | {
                status: | "OK"
                | "UNKNOWN_USER_ID_ERROR"
                | "RESET_PASSWORD_INVALID_TOKEN_ERROR";
            }
            | { failureReason: string; status: "PASSWORD_POLICY_VIOLATED_ERROR" },
        >
      • Parameters

        • tenantId: string
        • token: string
        • newPassword: string
        • OptionaluserContext: Record<string, any>

        Returns Promise<
            | {
                status: | "OK"
                | "UNKNOWN_USER_ID_ERROR"
                | "RESET_PASSWORD_INVALID_TOKEN_ERROR";
            }
            | { failureReason: string; status: "PASSWORD_POLICY_VIOLATED_ERROR" },
        >