You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 middlewares:
1) read the headers and apply some server configurations
2) connect to the database and create a param into the req object for global access
If i want to check my database looking for the token i need to create a connection into the user_loader funtion and i can reuse my custom middleware (DRU)
I expect we will take a virtual coffe and discuss this topic.
I appreciate your attention and love you tool ;)
The text was updated successfully, but these errors were encountered:
Thanks for the context on this one. See my comments on #23 on how we might proceed here. Any change we make here would be an interface-breaking change and would warrant a major version bump.
I have recently pushed tags for the commits that I would hope could become releases on PyPI (i don't have PyPI push access), but users of this library can use git+git references in their requirements lists to get the latest code without PyPI.
I was trying to pass my custom options but
user_loader
just accept one parameter, maybe add**kwargs
or something like that.I convert the parameter to dictionary for my business logic, maybe is not the best or cleaned but i think it's necessary.
My use case was: #23
I expect we will take a virtual coffe and discuss this topic.
I appreciate your attention and love you tool ;)
The text was updated successfully, but these errors were encountered: