About BasicAuth #488
Answered
by
chrislearn
josejachuf
asked this question in
Q&A
-
I'm trying to add basic_auth_handler to some routes, that are in different branches of the route tree let basic_auth_handler = BasicAuth::new(auth::Validator); The problem is that it moves in the first hoop I use. I tried to pass as a reference but does not allow it. Nor does the Trait Clone support.
How can I do it? |
Beta Was this translation helpful? Give feedback.
Answered by
chrislearn
Dec 13, 2023
Replies: 1 comment 1 reply
-
you can call a function and let it create basic_auth for you. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
josejachuf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can call a function and let it create basic_auth for you.