ArranJacques / laravel-aws-cognito-auth

An authentication driver for Laravel for authenticating users in AWS Cognito User Pools.
Other
74 stars 26 forks source link

Undefined index: RefreshTokenExpires #11

Closed muresanandrei closed 6 years ago

muresanandrei commented 7 years ago

I just got this error while trying to access every url

Undefined index: RefreshTokenExpires in AwsCognitoIdentityGuard.php (line 300)

ArranJacques commented 7 years ago

It looks like some values are missing from the Cognito tokens that get stored in the session.

Try clearing all of your sessions and then re-authenticating the user. Hopefully that will fix it temporarily by causing the tokens to be re-generated and saved to the session.

I'll take a proper look on Monday at what could of caused those values to get dropped and will put a fix in place so that in fails more graceful in the event that this happens.

Thanks.

ArranJacques commented 6 years ago

See https://github.com/pallant/laravel-aws-cognito-auth/commit/6632925458ca24406486953ac901e129ab55f44f