How to retrieve a Cognito Token - SMS-Staging-Management-System/UserService GitHub Wiki
Creating a New Account
To create a new account we need to make an API call to an endpoint on the Cognito servers through Postman. We will use the following endpoint:
https://t4o3pxu8dj.execute-api.us-west-2.amazonaws.com/dev/cognito/users
We then will set the JSON body as follows:
{ "email": "[email protected]" }
Make sure the the request method is set to POST like below:
If the call was successful, the response should look like this:
With the call being successful, the registered email will receive an email from cognito with a temporary code to login to the user interface. The email should look like the image below:
Click on the link to go to our login page and input your email as a user ID and the code as your password:
If it was done correctly you will be redirected to the reset password page to input a permanent password as in the image below:
Permanent passwords MUST contain at least one capital letter, number and special character.
For the next step, make sure the browser network tab is open and then press submit and you should see a network response as follows:
The very last response on the network tab is what to look for, and Idtoken is the param we are interested in.