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

Refresh token periodically #12

Open
SebastianStehle opened this issue Dec 27, 2022 · 4 comments
Open

Refresh token periodically #12

SebastianStehle opened this issue Dec 27, 2022 · 4 comments

Comments

@SebastianStehle
Copy link
Contributor

See: https://firebase.google.com/docs/cloud-messaging/manage-tokens#update-tokens-on-a-regular-basis

@CR4567

@CR4567
Copy link
Collaborator

CR4567 commented Dec 27, 2022

That's a pretty nice article.
We already had the idea of refreshing the token regularly in our old app architecture but always had issues with how to implement something like a periodical job.
But it seems there are more solutions recently:
https://medium.com/android-news/how-we-do-automatic-token-refreshing-using-androids-new-work-manager-a0347f506117

I also like the idea of tracking the age of the tokens for validation reasons. We were always looking for indicators of tokens are valid or not.

@SebastianStehle
Copy link
Contributor Author

There is an article for xamarin: https://devblogs.microsoft.com/xamarin/getting-started-workmanager/

I also like the idea of tracking the age of the tokens for validation reasons. We were always looking for indicators of tokens are valid or not.

What would be the difference to the logs we already have?

@SebastianStehle
Copy link
Contributor Author

But the dependency list is huge, I think this is something that the application should implement.

@SebastianStehle
Copy link
Contributor Author

I have added a separate package for that.

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

2 participants