Created
August 26, 2022 15:00
-
-
Save salihgueler/649a8f60464f030cad6741173b41510e to your computer and use it in GitHub Desktop.
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
Future<void> _signUpUser() async { | |
if (_formKey.currentState!.validate()) { | |
await Amplify.Auth.signUp( | |
username: _usernameController.text, | |
password: _passwordController.text, | |
options: CognitoSignUpOptions( | |
userAttributes: <CognitoUserAttributeKey, String>{ | |
CognitoUserAttributeKey.email: _emailController.text, | |
}, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment