Currently, in the current_user
functions from FastAPI/Flask/CLI integrations, we assume the token is valid and thus that the request to Fief will succeed.
However, there might be cases where the client considers the token as valid, but the Fief server does not. Typically, if we change our token structure and the client is outdated, the client will accept it but the server will reject.
We should handle this case more gracefully by raising a proper Unauthorized error when this happens.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too