Closed marjangvg closed 3 years ago
I've faced the same issue. So I will describe the required steps for those who come here for a solution:
.env
AWS_COGNITO_FORCE_PASSWORD_CHANGE_API=false
AWS_COGNITO_FORCE_PASSWORD_AUTO_UPDATE_API=true
automatically
when you firstly use attemptLogin
functionality (api or web). Pass is updated if the above variables are set and the status is changed.Hi ! Yes I use JWT token with Bearer
Le lun. 28 févr. 2022, à 21 h 14, Jerven Clark Chua < @.***> a écrit :
Hi, how do you use the session_token in a request? Is it like JWT where you add an Authorization: Bearer
header? — Reply to this email directly, view it on GitHub https://github.com/ellaisys/aws-cognito/issues/18#issuecomment-1054912250, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANFFTXQV5LULW7D7Y4DEU73U5V4QFANCNFSM5DQYSBZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hello,
Thank you for the great package! :)
I'm using it with laravel 8 app, for developing an API.
Then, if I try to call the user profile API endpoint (or any other API endpoint ) using the session_token from above, I'm getting this error:
The API endpoints use the 'aws-cognito' middleware. Any ideas how to fix this? I also tried setting 'force_password_change_api' in the cognito.php config file to false, but it still adds the new users with Enabled / FORCE_CHANGE_PASSWORD status.
Thanks