Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify the user to open the app when close to refresh token expiry #154

Open
yatharthranjan opened this issue Jan 22, 2025 · 0 comments
Open

Comments

@yatharthranjan
Copy link
Member

The default token expiry for OAuth refresh tokens provided by the management portal is 90 days. If the app is closed (not running in the background), the token will not be refreshed and the user logged out, resulting in an unauthorised error for the user when the app is opened next.

Suggest we schedule a notification for few days before the refresh token expiry (perhaps 80 days for a 90 day refresh token validity). The notification should be cancelled whenever the token is refreshed and a new notification scheduled for the new refresh token expiry date.

This would prevent users from logging out and also prompt them to open the app in case it is not running for some reason.

This is not a complete strategy and should be combined with comprehensive missing data monitoring on the backend using dashboards and alerting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant