HNHacker News
TopNewBestAskShowJobs

njknsdf

-7 karma · joined June 10, 2016

submissionscomments
njknsdf··on The U.S. Navy’s Big Mistake: Building Tons of Supercarriers
Against a defenseless country looking to surrender that couldn't retaliate. Will be a bit different if it initiates nuclear war against Russia or China.
njknsdf··on Don't use JSON web tokens for sessions
You can store the user info in the JWT so you don't need to hit the database to get user info every time. I usually just store an id in each issued token and store/remove it from redis or memory as needed for invalidating it.