I'm working on a project with next.js and prisma (PostgreSQL), for authentication I use (NEXTAUTH),
I just want to know how to track a user's session (Its duration - start and end time each time he enters site)
and this is because i want to calculate the DAU (Daily active users), and other purposes, if anybody gives me ideas i'd be so thankful.
thanks in advance.