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

Commit 5c0d0ff

Browse files
committed
Refined Module 1 instructions
1 parent e77ccd7 commit 5c0d0ff

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Auth/1_UserAuthentication/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ You will need to create a Cognito Identity Pool linked to the Cognito User Pool
160160

161161
1. Choose **Allow** to allow Cognito Identity Pools to setup IAM roles for your application's users. Permissions and settings of these roles can be customized later.
162162

163-
1. Copy/paste the *Identity Pool ID*, highlighted in red within the code sample in the Get AWS Credentials section, into your Cloud9 scatchpad editor tab. Make sure not to copy the quotation marks!
163+
1. Copy/paste the *Identity Pool ID*, highlighted in red within the code sample in the Get AWS Credentials section, into your Cloud9 scatchpad editor tab. Make sure not to copy the quotation marks, but include the region code and ":" character!
164164

165165
![Copy Identity Pool Id to Cloud9 scratchpad](../images/cognito-identitypool-copyId.png)
166166
@@ -185,15 +185,17 @@ You'll need to complete the implementation of the onSubmitForm and onSubmitVerif
185185

186186
1. Before using any AWS Amplify modules, we first need to configure Amplify to use our newly created Cognito resources by updating */Auth/website/src/amplify-config.js*.
187187

188-
1. After opening this file in your Cloud9 IDE editor, find an replace the following parameters with values from your previous scratchpad:
188+
1. After opening this file in your Cloud9 IDE editor, copy the following parameter values from your previous scratchpad into the config value parameter placeholders:
189189
- `identityPoolId`
190190
- `region`
191191
- `userPoolId`
192192
- `userPoolWebClientId`
193193

194+
> Be sure to fill in the **'' blanks** with your config values. You do not need to modify the example values shown in the comments as they are just for reference and not leveraged by your application.
195+
194196
1. Be sure to **save your changes** to the config file so your new Amplify settings take effect. Any unsaved changes to a file are indicated by a dot icon in the tab of the editor so if you see a gray dot next to the file name, you may have forgotten to save.
195197

196-
1. Next, edit the *website/src/index.js* file to add the following lines to the **top of the file** *(but below all the other imports)* to configure Amplify then save your changes:
198+
1. Next, edit the *website/src/index.js* file to add the following lines to the **top of the file** **(but below all the other imports)** to configure Amplify then save your changes:
197199

198200
```
199201
import Amplify from 'aws-amplify';
@@ -212,6 +214,8 @@ You'll need to complete the implementation of the onSubmitForm and onSubmitVerif
212214

213215
1. Now that we've imported the Amplify and configured the Amplify library, we need to update our application's code to sign-up users using Amplify and Cognito User Pools by finding and replacing the following methods within the */website/src/auth/SignUp.js* file with the code below **then save your changes**.
214216

217+
> You only need to replace these two methods. The rest of the SignUp.js file should not be modified.
218+
215219
```
216220
async onSubmitForm(e) {
217221
e.preventDefault();
@@ -260,6 +264,8 @@ You'll need to complete the implementation of the onSubmitForm and onSubmitVerif
260264

261265
1. You additionally need to integrate the sign-in capability to use AWS Amplify and Cognito by finding and replacing the following methods within the */website/src/auth/SignIn.js* file with the code below **then save your changes**.
262266

267+
> You only need to replace these two methods. The rest of the SignIn.js file should not be modified.
268+
263269
```
264270
async onSubmitForm(e) {
265271
e.preventDefault();
@@ -329,6 +335,8 @@ After signing up as a new user, sign-in with the same user at the */signin* path
329335

330336
1. Input your e-mail address, phone number with `+country_code` first preceeding the number, as well as your password twice. For a US-based phone number, an example would be `+14251234567`.
331337

338+
> Your password must include 8 characters, including uppercase and lowercase characters, and at least 1 number and 1 special character.
339+
332340
1. Choose **Let's Ryde** to submit registration.
333341

334342
1. On the verify e-mail screen, enter the one-time code sent to your e-mail address provided then choose **Verify**.

0 commit comments

Comments
 (0)