Next.js Discord

Discord Forum

how get timestamp from session from next-auth ?

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Avatar
Northeast Congo LionOP
I am using discord oauth2. By using next auth I retrieve user ID from session but it's hexa numeric and I want to fetch timestamp from it. I found somewhere snowflake I'd which can use to get timestamp but with heca numeric user ID it's not getting correctly. What should I do ?

If I used BigInt then showing invalid

0 Replies