Optional auth? #207
Answered
by
ChillFish8
ChillFish8
asked this question in
Q&A
-
Hello again 😅 What would be the best plan of attack for a situation where you essentially want the option of having a request be able to pass an authorization bearer or nothing? If authorization is passed do one thing, otherwise do the other. |
Beta Was this translation helpful? Give feedback.
Answered by
ChillFish8
Feb 20, 2022
Replies: 1 comment 6 replies
-
😅 Well I've done the whole, find the answer plain as the day after I ask the question thing. Turns out it's super easy to do with the |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
ChillFish8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
😅 Well I've done the whole, find the answer plain as the day after I ask the question thing.
Turns out it's super easy to do with the
BearerAuthorization
trait.