cachapa / firedart

A dart-native implementation of the Firebase Auth and Firestore SDKs
https://pub.dev/packages/firedart
Apache License 2.0
174 stars 62 forks source link

how do i force refresh idToken? #128

Closed hedihadi closed 9 months ago

hedihadi commented 10 months ago

hello, i use firedart on Windows OS, and when i put the Windows into sleeping mode for a couple hours then turn it back on, the idToken is expired but Firedart does not catch this issue. is there any way that i can force a new idToken from the refreshToken?

thank you in advance!

cachapa commented 9 months ago

Generally any call using the Auth, like getUser() will refresh the token if necessary.

The issue is that Firestore currently doesn't perform automatic token refresh, which needs to be fixed. See this comment.

I'm closing this issue as it's already being tracked elsewhere.