API Keys
Hono
API Authentication in Hono
Prerequisites
- Created your Unkey account
- Created an API in the Unkey dashboard
Skip the tutorial
Don’t want to read the tutorial? Click this to get an example ready to test.
1
Create Hono Application
Run the following command to create your Hono project
2
Install
Now install the @unkey/hono
package
3
Update index to use our Hono SDK
Create a new route and add the following code
/src/index.ts
4
Running it
5
Try it out
Go to https://app.unkey.com and create a new key. Then verify it with our new server:
It should return Hello Hono!"
What is next?
Now that you’ve seen the power of Unkey, check out some resources below to continue your journey.