Skip to content

Commit

Permalink
fix: hide authorization header in v1/keys.verifyKey route (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark authored Dec 12, 2023
1 parent 709df5c commit ad22285
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions apps/api/src/pkg/hono/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ export function newApp() {
title: "Unkey Api",
version: "1.0.0",
},
// @ts-expect-error - this is a bug in the types
components: {
securitySchemes: {
BearerAuth: {
type: "http",
scheme: "bearer",
},
},
},
security: [{ BearerAuth: [] }],
servers: [
{
Expand All @@ -32,10 +41,10 @@ export function newApp() {
],
});

app.openAPIRegistry.registerComponent("securitySchemes", "BearerAuth", {
type: "http",
scheme: "bearer",
});
// app.openAPIRegistry.registerComponent("securitySchemes", "BearerAuth", {
// type: "http",
// scheme: "bearer",
// });
return app;
}

Expand Down

0 comments on commit ad22285

Please sign in to comment.