0:00
1:44:22
1:44:22

How To Build A Production Ready API - Auth, JWT, API Keys

Tech

Try Requestly For FREE: https://requestly.com Hono is an amazing library that makes building type safe backend APIs incredibly easy. In this video I will show you how to build a fully type safe API from scratch that utilizes email/password auth, JWT, and API keys to secure the application. I will also show you how to use Requestly to make testing your API so much easier. 📚 Materials/References: GitHub Code: https://github.com/WebDevSimplified/hono-api-with-auth-crash-course 🌎 Find Me Here: My Blog: https://blog.webdevsimplified.com/ My Courses: https://courses.webdevsimplified.com/ Patreon: https://www.patreon.com/WebDevSimplified Twitter: https://twitter.com/DevSimplified Discord: https://discord.gg/7StTjnR GitHub: https://github.com/WebDevSimplified CodePen: https://codepen.io/WebDevSimplified ⏱️ Timestamps: 00:00:00 - Introduction 00:01:15 - Hono Setup 00:02:37 - Basic Routing 00:08:32 - Requestly Setup 00:10:24 - Author CRUD Implementation 00:20:00 - Automating Requestly 00:25:58 - Database Setup 00:41:25 - Auth/JWT Setup 01:02:53 - API Key Setup 01:30:55 - Book CRUD Implementation #Hono #WDS #Requestly

ADVERTISEMENT

Comments 90

Sign in to join the conversation

Sign in
G
grégoire_louis 1 week, 2 days ago

I did this with AI as a comparison, and it improved or fixed many issues in his code. There was no logout API leaving tokens in the browser that someone can use for 5 minutes, logging of the API key in plain text on the server, issues with case sensitivity of registered user emails, race conditions in places, ssl disabled in db connection, the /delete took the createKeySchema as input for no reason so a normal HTTP delete would have failed, it was missing validations on some inputs (like UUID format), it had inconsistent 404 error format responses, slightly incorrect 201 responses, a version of hono with known exploits, etc. Somewhat ironically for this channel, AI was a better choice for learning this.

S
silvia_garcía 1 week, 4 days ago

It is literally painful to watch someone go back to writing code character by character as if AI isn't a thing. There has to be a happy medium, where you use the tools, and still impart knowledge to the viewer quickly and effectively.

J
jacqueline.long 1 week, 5 days ago

Let's appreciate Kyle giving out real useful knowledge in 2026 ♥

C
christine_ferrand 1 week, 6 days ago

Done & It was Great!

E
eshana.modi 1 week, 6 days ago

Great! Nice to know Hono!

N
nadiaaether4 1 week, 6 days ago

An hour and half long tutorial of codiing in 2026! This is rear. Kudos to you!

M
maríacristina_deanda 2 weeks ago

Keep up the good stuff man. Really revealing again to see someone coding from scratch. :) I can fully relate to this. I am doing most coding also on my own.

M
meghana_bobal 2 weeks ago

This was really good! And requestly is a clean tool for testing APIs

G
garry.hayes 2 weeks, 1 day ago

Learning Hono, too, but with Bun as the pm and runtime. I’m doing it to see whether or not I like it better than Elysia haha. It’s been a joy, though.

diego_almeida
diego_almeida 2 weeks, 1 day ago

whats wrong with tsrest and fastify?

S
saravista28 2 weeks, 1 day ago

Amazing job Kyle. This brings back memory of how fun coding should be.

J
josué_costela 2 weeks, 1 day ago

Wow! Man I love you. People like you are the saviors

J
james_west 2 weeks, 2 days ago

keeep it uppp!!!!!!

J
jacqueline.long 2 weeks, 2 days ago

This is very informative, Thank you.

graham_harvey
graham_harvey 2 weeks, 2 days ago

make no mistake

J
jilllewis330 2 weeks, 2 days ago

Keep it up!!! Would love to see some senior stuff. AsyncQueue, Background Tasks…

B
bertrand_charpentier 2 weeks, 2 days ago

I usually use Ad blocker, But for you I have turned off the adblocker. Thank you for you contribution.

N
nicholas_smith 2 weeks, 2 days ago

Would you like to do a express js and like SQL for auth and authors? Why did you use scrypt instead of something like bcrypt?

N
nicholas_bell 2 weeks, 3 days ago

Thank you verify much keep it up please, I really appreciate it

L
lucy_greenwood 2 weeks, 3 days ago

I still watch your videos to brush up my fundamentals. These videos are really valuable