JWT logout doesn't log anyone out by default. The token stays valid until it expires.
PrepDost fix:
- every token gets a jti
- logout puts it in a blocklist (Mongo TTL index cleans it up)
- password change bumps tokenVersion, killing all old tokens
#buildinpublic#jwt
@helloshiva0801 Agreed, feedback quality is the hard part. Plan is to score each answer against a per-question rubric with an LLM, returning structured output (clarity, depth, correctness) plus specific improvements. Will test it against my own answers first and share what I learn.
@wangyan_im Great point. Request-based limits wouldn't catch a few long sessions eating the model budget. I'll add a per-user concurrency cap on the interview endpoint, probably in Redis too.
@Talljackcv Thanks! Exactly why I did them first. Much easier to add before there's a pile of features to retrofit. Interview flow is coming up, will keep posting.
@j3rah_ Thanks! Google sign-in + email OTP, with JWT access/refresh tokens. Writing it myself on Express to learn how it all fits together. Will share it in the next build log.
Added Redis to PrepDost, but only for rate limits.
In-memory counters: each server counts alone. Run 2 instances and every user gets 2x the limit.
Now instances share one counter. If Redis is down, requests still pass (750ms timeout) instead of failing.
#buildinpublic#redis
@mo_tawfik89 Thanks Mohamed! Retry after feedback is on the PrepDost roadmap now, along with other ideas from this thread. Will update it as things ship 🙌
@MrRemo_x Great call, thanks! Logging expired vs bad signature vs missing header separately will make auth debugging so much easier. Adding it with the auth work.
@meetmaru149 Thanks! The differentiator is having everything in one place. On PrepDost you can solve company-wise DSA and practice with an AI interviewer, and I'm thinking of adding animated system design lessons too. So you don't need 10 different platforms to prep for your next interview.