fastapi-jwt-auth
fastapi-jwt-auth copied to clipboard
token_in_denylist_loader should support coroutines
I'm using asyncio_redis for the revocation list of tokens and it would be nice if the library supported coroutines (async def functions) for the AuthJWT.token_in_denylist_loader callback.
Good idea I was thinking about that too, I will add the feature in the next version 😄
What is your timeline for the next version?
After I tested fastapi-jwt-auth in my client project and finished my client project, maybe at the end of January or mid-February
I ran into the same issue when trying to use asyncio_redis for the revocation list. What work-around did you use ? Did you create a new asyncio loop or did you create a second redis (sync) connection ?
I ran into the same issue when trying to use asyncio_redis for the revocation list. What work-around did you use ? Did you create a new asyncio loop or did you create a second redis (sync) connection ?
I created an async fork of the library, I do not pretend to create a good async code, but it is to works with it in an async application.
https://github.com/sijokun/async-fastapi-jwt-auth