When reading Amazon Cognito documentation, a reminder that Cognito API offers two type of functions:
The core library (that enable to interact with the user management and authentication functions in the Amazon Cognito User Pools API)
A wrapper around the core library that add webpages to your app for the following: sign-up, sign-in, confirmation, multi-factor authentication (MFA), and sign-out see.