Learn Hono Framework by Building API Authentication | Tested in Postman
ฝัง
- เผยแพร่เมื่อ 2 ต.ค. 2024
- Unlock the secrets of API authentication with our comprehensive tutorial on the powerful Hono Framework. Whether you're a seasoned developer or just starting out, our practical approach and real-world examples ensure you'll grasp the concepts effortlessly. Plus, with our hands-on demonstrations tested in Postman, you'll gain practical insights that you can apply immediately :). Subscribe now and dive into the world of Hono Framework mastery!
Source code:
Starter: github.com/wib...
📍My Blog:
www.wibawaarif...
#bun #nodejs #expressjs #hono #postman #api #backend
You should zoom your text a bit before recording; don't you think so?
Yes, I just realized it. Thanks for your input :)
nice video but please make the font size larger, hard to follow along...
alright. Next time!
25% larger text. its kinda crazy you didnt notice that before uploading.
you should zoom out the video , this is very bad content
Thanks for the input, we will make it better in upcoming videos!
manythanks! but can you make 'index' have Authorization header automatically after successfull login, I still haven't found a solution :< (sorry for my bad English)
what? you are checking that token in Berear header equals to value in cookie? why? shouldn't you call verify method to see whats inside, only if you can open it (so verify) you guarantee token is signed correct and issued by you... otherwise i can put any troll value in my cookie and header and get into your system
It's just example bud. Here is the practical way for that case:
app.use(
"/index/*",
bearerAuth({
verifyToken: async (token, c) => {
try {
const decoded = jwt.verify(token, process.env.SECRET || "");
return !!decoded;
} catch (err) {
return false;
}
},
})
);
I'm sorry i don't see anything and ma vid quality is at HD
Yeah its a bit to small :) Thanks for showing Hono its getting my interest
Good intro ! why the cookie auth doesn't work ?
Zoom ur screen next time
Increase the font size...then re-upload it please
Noted!
WTF FFONT