Replies: 2 comments
|
Hi @ockan! You are absolutely correct. The currently doesn't correctly await async user loaders, and we need to ensure the request hooks are also properly awaited in the async lifecycle. I am working on an implementation plan to support this properly. Thank you for providing the fix example! |
0 replies
|
Hello! We've implemented a full async overhaul for the request lifecycle hooks and user loader to address the issue you reported. Key changes:
These changes are included in the latest commit. You can now use async database calls in your user loader without event loop issues. Happy coding! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When connect to ab async ORM and use 'login_manager.user_loader', an error occurred
I code
the error:
then, i modify bustapi/auth/login.py as following:
it works and no error.
All reactions