-
Notifications
You must be signed in to change notification settings - Fork 19
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
feature request: A way to force token update when it becomes expired #59
Comments
possibly related: #52, I will try this approach but I am still wondering about my original question |
Hi and thank you! The gist of it is that Please let me know if you have more questions. |
The problem with authorizedRequest, though it is quite useful if I were using fetch, is that I would like to use axios instead of fetch API. How does authorizedRequest ensure it has an updated token? Maybe I could replicate that logic. |
Sorry for the delay in responses. |
thanks @samuelgozi and @ocruzv -- this is exactly the functionality I was hoping for! Do we have an estimate on when the next npm release will happen? I'm happy to contribute code review or help in any other way if you have outstanding items to accomplish. |
The changes should be up in NPM. If not, please let me know. |
Hello! I am happy your solution is so much smaller. Do you know if there is a way to update the user object when the token expires? to run when
expiry date < new Date()
I see a refresh token in user.tokenmanager, but not sure which method to call with that token, or if there's a parameterless method included with the firebase-auth-lite import.
fetchProfile doesn't seem to update the token, but maybe I need to await a svelte
tick
.The text was updated successfully, but these errors were encountered: