Replies: 2 comments 1 reply
-
Hail, @ekiim 👋 Welcome to Fief's kingdom! Our team will get back to you very soon to help. In the meantime, take a minute to star our repository ⭐️ Want to support us?Subscribe to one of our paid plan to help us continue our work and receive exclusive information and benefits! Starts at $5/month 🪙 Farewell! |
Beta Was this translation helpful? Give feedback.
-
Fief supports the concept of Meanwhile, you can increase the lifetime of access tokens to limit the problem: https://docs.fief.dev/configure/clients/#authorization-code-and-tokens-lifetime |
Beta Was this translation helpful? Give feedback.
-
I'm struggling to find the proper way to handle the token refreshing when using the provider?
I am wrapping most of the behavior of the fief client in my own hook (so It integrates with my API that require a fief token), but when doing testing, I find several times, in a situation that the token expired, and have to login-logbackon, very often which feels like bad UI, so I'm trying to find the condition to use your
useFiefTokenInfo
and invoke manually new request for token?If the library does not include it, I might need to do it manually.
Is this something I'm missing? am I doing something wrong? or it's just not implemented?
Beta Was this translation helpful? Give feedback.
All reactions