1.4.7 • Published 9 months ago

@sekmet/unkey-hono v1.4.7

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Check out the docs at unkey.dev/docs.

Here's just an example:

import { Hono } from "hono"
import { UnkeyContext, unkey } from "@unkey/hono";

const app = new Hono<{ Variables: { unkey: UnkeyContext } }>();

app.use("*", unkey());


app.get("/somewhere", (c) => {
  // access the unkey response here to get metadata of the key etc
  const ... = c.get("unkey")

  return c.text("yo")
})
``
1.4.7

9 months ago