Hello everyone,
I’m currently experimenting with building a small word-puzzle platform inspired by games like Letter Boxed archive, and I’m using Auth0 for authentication and user management.
The main idea is that users can sign in and track their daily puzzle progress, save solutions, and possibly maintain a streak or leaderboard similar to what many daily puzzle platforms offer.
So far the basic authentication flow works well, but I’m trying to figure out the best way to structure user data related to puzzle activity.
Current setup:
-
Authentication: Auth0 Universal Login
-
Frontend: JavaScript web app
-
Backend: Node.js API
-
Puzzle logic: Daily word puzzle similar to Letter Boxed where users connect letters to form words.
What I’m trying to implement:
-
Users log in with Auth0
-
Each user can submit their solution to the daily puzzle
-
The system records:
-
number of attempts
-
solution words used
-
completion time
-
daily streaks or stats
-
My main questions:
-
Is it best practice to only store the Auth0
user_idin my database and link all puzzle activity to that? -
Would it make sense to store things like streak counts or puzzle stats in Auth0 user metadata, or should that remain entirely in my application database?
-
Has anyone used Auth0 Actions to attach custom claims (like puzzle rank or solved status) to tokens for this type of gamified feature?
I’m mainly trying to design this in a way that scales well if the puzzle platform grows and more users start tracking their progress daily.
If anyone has built a game, puzzle platform, or daily challenge system using Auth0, I’d really appreciate hearing how you structured authentication vs gameplay data.
Thanks in advance!