Comments (7)
@sor4chi Can you see this issue?
from middleware.
The security option must be specified with the name registered in securitySchemes, as shown in the selection in this picture.
This worked for me, can you try it?
from middleware.
That worked for me as well! Thank you @sor4chi. Closing this issue with that fix.
from middleware.
I'm busy and haven't been able to look at it, but maybe this issue will solve the problem?
It's not closed, but it should be resolved.
from middleware.
Can this solve your issue? #261
from middleware.
I'm personally concerned that the second argument of registerComponent is an empty string.
from middleware.
Hi both, thank you for the responses!
@sor4chi i tried a non empty string too -- did not work. It just seems to be the name loaded into Swagger.
@yusukebe my API code for /api/page
is similar to #261 the only main difference is I'm using app.use("/api/*", bearerAuth({ token }));
. It seems without this the route isnt actually authorized unless I'm missing something?
from middleware.
Related Issues (20)
- Clerk getAuth inside the app.post
- [trpc] access bindings HOT 1
- Bun TypeScript Transpiler Middleware
- @hono/zod-validator doesn't support nullable values HOT 2
- Type Error when trying to validate 'params' with zValidator - Types of parameters 'c' and 'c' are incompatible HOT 6
- Example with Supabase AUTH HOT 1
- zod-openapi /doc endpoint returns 500 if param name is wrong HOT 2
- Cannot give nullish schema to zValidator HOT 3
- Cannot use preprocess and coerce in zValidator. HOT 8
- Authorization Header Not Working with Swagger in Hono/Zod-OpenAPI HOT 4
- [zod-openapi] Problem with strict type checking of return values HOT 5
- [zod-validator] zValidator type error with param HOT 6
- How to Insert Custom Middleware Using @hono/zod-openapi ? HOT 2
- basicAuth for serveStatic HOT 1
- Issues with peer dependencies found, using @hono/oauth-providers HOT 1
- how to access env outside fetch, when working with oauth-handlers HOT 1
- Possible enhancement for @hono/typebox-validator ?
- [zod-openapi] hono client type inference does not work with a chained route and middleware HOT 2
- @hono/qwik-city on Cloudflare Pages? HOT 3
- zod-validator type error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from middleware.