MrHertal / react-admin-amplify

AWS Amplify data provider for react-admin.
MIT License
159 stars 42 forks source link

how to handle with `Refresh Token has expired`? #46

Closed umepon0626 closed 3 years ago

umepon0626 commented 3 years ago

When I ran development server and tried to login, I got this error. My settings about token expiration date is set to default. (So, refresh token expiration date is 30 days). However It's been shorter than 30 days since I last logged in.

Could anyone show me how to deal with this problem??

Thank you!

umepon0626 commented 3 years ago

I can login on the production page hosted with S3 and cloudFront but I can't login with same user on the development server(my local pc).

Before I get this error, I delete amplify api(dynamoDB) to change key schema and re-add api with new schema. Maybe this re-add the api cause this error, but I cannot find the solution....

What I tried to solve

umepon0626 commented 3 years ago

I delete the local storage via dev tools in chrome and the error change to No current User....

umepon0626 commented 3 years ago

it's package versioning problem...

MrHertal commented 3 years ago

Glad I could help 😊