Hacker News new | ask | show | jobs
by melony 1268 days ago
You can implement this in about 10 lines with synced tab session management if you use Vercel's library.

https://authjs.dev/

Here is the token generation logic

https://github.com/nextauthjs/next-auth/blob/main/packages/n...