/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export default {
id: 'auth-form',
initial: 'idle',
on: {
RESET: [
{
target: 'idle',
},
],
ERROR: [
target: 'error',
states: {
idle: {
entry: ['clearError'],
SUBMIT: [
target: 'loading',
cond: 'hasValue',
loading: {},
error: {
exit: ['clearError'],
TYPING: [
};