jagregory / cognito-local

Local emulator for Amazon Cognito
MIT License
289 stars 74 forks source link

Feature request: `InitiateAuth` should return `ExpiresIn` according to the value set on the corresponding User Pool Client #252

Open RobHoman opened 2 years ago

RobHoman commented 2 years ago

Catching whatever discrepancies I can and feeding them your way!

Noticed that responses for InitiateAuth are not setting the ExpiresIn value.

https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html#CognitoUserPools-InitiateAuth-response-AuthenticationResult

https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AuthenticationResultType.html#CognitoUserPools-Type-AuthenticationResultType-ExpiresIn