Hi,
I’m currently using Robyn with an async ORM, so authentication logic requires async I/O.
From my understanding, authentication_handler supports async def syntactically, but it does not behave like a full async middleware (no response control, no next(), limited async semantics, not propagated to SubRouter).
I wanted to ask:
- Is there any plan to extend
authentication_handler to better support real async use cases in the future?
- For applications using async ORMs or other async dependencies, is the recommended approach to implement authentication via
add_middleware() instead of configure_authentication()?
I just want to make sure I’m using Robyn in the intended way for async-heavy applications.
Thanks.
Hi,
I’m currently using Robyn with an async ORM, so authentication logic requires async I/O.
From my understanding,
authentication_handlersupportsasync defsyntactically, but it does not behave like a full async middleware (no response control, nonext(), limited async semantics, not propagated toSubRouter).I wanted to ask:
authentication_handlerto better support real async use cases in the future?add_middleware()instead ofconfigure_authentication()?I just want to make sure I’m using Robyn in the intended way for async-heavy applications.
Thanks.