jagregory / cognito-local

Local emulator for Amazon Cognito
MIT License
278 stars 67 forks source link

fix(initateAuth): update user after post auth lambda #387

Open mani3 opened 5 months ago

mani3 commented 5 months ago

Get the latest user attributes after PostAuthentication is called.

If user attributes are updated within the PostAuthentication Lambda trigger process, these changes overwrite to old user attributes with generated tokens. To prevent this, it's necessary to get the latest user attribute before saving a new token.

Let me know if there is a specific guide for creating a pull request.