cgauge / Flask-AWSCognito

Extension for Flask that adds support for AWSCognito into your application
https://flask-awscognito.readthedocs.io
MIT License
28 stars 28 forks source link

Refresh Token flow #15

Open GeorgePearse opened 3 years ago

GeorgePearse commented 3 years ago

I'm using this package for my dash dashboard (built on top of flask).

Works perfectly for the initial login but as soon as the access token runs out I hit problems. If the user refreshes the page they get redirected to the AWS login and everything is well, but until that point the page just appears broken and there's no simple way I'm aware of to trigger a web refresh from the server (maybe server sent event but I don't want to mess around with that for a simple auth flow).

Is there no InitiateAuth equivalent?

babaMar commented 3 years ago

See https://github.com/cgauge/Flask-AWSCognito/issues/13