News for hackers. Stuff that matters.
Re:Ask HN: Lightweight Authentication by melony on Thursday December 29, 2022 @08:54PM (#34180794)
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...

There are no comments on this comment yet.