api key validation problem

When I search for api key using the DB, it appears, but doesn't work when I try the same using api key validate, I get an error Keys not found


I am using this in external api, which dont have auth setup thouhg, coz my main app is nextjs, and for hono I am using api keys so people can call endpoints
Solution
you dont have the key hashing disabled, the keys table with the key column is a hashed version, it will not be the actual key, usally the key is provided to you when you create the key use the value instead.
Was this page helpful?