im using aws-amplify for user authentication, in the documentation it says that first it need to be configured like this:
Amplify.configure({ Auth: { mandat