C.W.K.
Stream
Quiz · 5 questions

🔢 The PIN Layer — Real Auth in 100 Lines

Middleware, SQLite tables, bcrypt, IP-bound sessions, login/logout, the killswitch endpoint

Level 0Greenhorn
0 XP0/53 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01Why put auth in middleware instead of per-route decorators?
02Why bind the session cookie to the issuing IP in the database?
03What's the rationale for the constant-time sleep (asyncio.sleep(0.5)) on a failed PIN attempt?
04Why fixed-expiry sessions over sliding for solo-dev apps?
05What does the 'Revoke All' admin endpoint actually do?
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.