Replies: 1 comment
-
|
Use a union in the same decorator @useAuth(ApiKeyAuth<ApiKeyLocation.header, "Authorization-admin"> | ApiKeyAuth<ApiKeyLocation.cookie, "token">) |
Beta Was this translation helpful? Give feedback.
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.
-
I'm sorry if I'm asking a stupid question, I've never asked a question before, this is my first time.
How do I describe "securitySchemes" in openapi so that I can choose one of two authorizations?
See screenshots.
I can only use "@useAuth" once, but I need two.
I have it like this right now:
I want to do this:
Variant 2 error compile:

Beta Was this translation helpful? Give feedback.
All reactions