Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit e77ccd7

Browse files
committed
Updated default method signatures to async pattern
1 parent 83c2ffd commit e77ccd7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Auth/1_UserAuthentication/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If you're using the latest version of the Chrome, Firefox, or Safari web browser
4444

4545
### 2. Creating a Cognito User Pool
4646

47-
Amazon Cognito lets you add user sign-up, sign-in, and access control to your web and mobile apps quickly and easily. In this step, we'll create a Cognito user pool for our Wild Rydes app.
47+
Amazon Cognito User Pools lets you add user sign-up and sign-in capabilities to your web and mobile apps quickly and easily. In this step, we'll create a Cognito user pool for our Wild Rydes app.
4848

4949
#### High-Level Instructions
5050

Auth/website/src/auth/SignIn.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ class SignIn extends React.Component {
3434
};
3535
}
3636

37-
onSubmitForm(e) {
37+
async onSubmitForm(e) {
3838
e.preventDefault();
3939
console.log('Form Submitted');
4040
this.setState({ stage: 1 });
4141
}
4242

43-
onSubmitVerification(e) {
43+
async onSubmitVerification(e) {
4444
e.preventDefault();
4545
console.log('Verification Submitted');
4646
this.setState({ stage: 0, email: '', password: '', code: '' });

Auth/website/src/auth/SignUp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class SignUp extends React.Component {
3535
};
3636
}
3737

38-
onSubmitForm(e) {
38+
async onSubmitForm(e) {
3939
e.preventDefault();
4040
console.log('Form Submitted');
4141
this.setState({ stage: 1 });
4242
}
4343

44-
onSubmitVerification(e) {
44+
async onSubmitVerification(e) {
4545
e.preventDefault();
4646
console.log('Verification Submitted');
4747
this.setState({

0 commit comments

Comments
 (0)