Lab 2 - User Pools SDK

Activities in this coding exercise are based on resources create in previous exercise:

You will need:

  • user-pool-id
  • application-client-id
  • APIGW endpoint.

Reference fiddle (Identity SDK): https://jsfiddle.net/mmatouk/mba9q5os/1/

Integration using Identity SDK is what you will be building in this exercise, it is better to build the fiddle step-by-step yourself, you can refer to the reference fiddles if anything is not working or if you need to copy/paste…etc.

A version of the fiddle that uses Amplify Auth Library instead of Identity SDK is available below, you can review this version to understand the difference in syntax and evaluate the two approaches.

Reference fiddle (Amplify Auth Library): https://jsfiddle.net/mmatouk/jtqLsf51/

jsfiddle is a public playground, don’t put any secrets or sensitive data in your fiddles. All fiddles are public by default.