golang-cognito-example
golang-cognito-example copied to clipboard
Golang example of using AWS Cognito APIs (Register, Login, Verify Phone, Refresh token)
- add env AWS_REGION - add secret hash in register, close #5 - updae aws-sdk-go - fix README.md
Add handling of NEW_PASSWORD_REQUIRED event. The account added from the cognito management background will be forced to change the password after logging in.
When using your code, I realized that you get NotAuthorizedException (amazon style in go) error when trying to create an account. The reason is that you are missing the `SecretHash`...