© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
should i store otp in session or database? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
1 reply
Lopen
should i store otp in session or database?
I regularly use database though
During the nextauth signing process i check if the user has a otp first on the db then check if it has expired if expired send new one and delete old otp
Else send the old otp that hasn
't expired
Theo's Typesafe Cult
Join
27,223
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
should i use a database to store online users
TTC
Theo's Typesafe Cult / questions
13mo ago
Store Bank Account Information in Database
TTC
Theo's Typesafe Cult / questions
3y ago
What user info do I store in my database???
TTC
Theo's Typesafe Cult / questions
3y ago