How it works...

To summarize, we did the following in this recipe:

  1. Created a user
  2. Initiated authentication flow as a user
  3. Responded to password challenges from Cognito
  4. Used the refresh token to regenerate the access token and the ID token

The major differences, as compared to the server-side authentication flow API usage, are as follows:

  1. Unlike with the server-side authentication APIs, we did not specify an admin profile while executing the CLI commands.
  2. You do not have to specify the user pool ID with client-side authentication flow API calls; only the client ID needs to be specified.
In real-world applications, you generally choose client-side authentication if you are working with SDKs for client-side platforms (for example, iOS, Android, or JavaScript), and server-side authentication flows if you are working with SDKs for server-side language platforms (for example, Java and Node.js). 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.36.38