Skip to content

Instantly share code, notes, and snippets.

@krcummings1
Created June 23, 2021 19:17
Show Gist options
  • Save krcummings1/ee60d142932f72205bb4d12da12fd59b to your computer and use it in GitHub Desktop.
Save krcummings1/ee60d142932f72205bb4d12da12fd59b to your computer and use it in GitHub Desktop.
Authenticator Form Fields
<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