Created
June 23, 2021 19:17
-
-
Save krcummings1/ee60d142932f72205bb4d12da12fd59b to your computer and use it in GitHub Desktop.
Authenticator Form Fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { onAuthUIStateChange } from '@aws-amplify/ui-components'; | |
export default { | |
name: 'Auth', | |
data () { | |
return { | |
user: undefined, | |
authState: undefined, | |
formFields: [ | |
{ | |
type: 'email', | |
label: 'Email Address', | |
placeholder: 'Enter your email address', | |
required: true | |
}, | |
{ | |
type: 'password', | |
label: 'Password', | |
placeholder: 'Enter your password', | |
required: true | |
}, | |
{ | |
type: 'custom:dashboard', | |
label: 'Invitation Code', | |
placeholder: 'Enter your invitation code', | |
required: true | |
} | |
] | |
}; | |
}, | |
beforeDestroy () { | |
return onAuthUIStateChange; | |
} | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment