Day 15
Today I implemented full user registration with email verification.
Registration creates an inactive account and sends a verification link with a JWT token.
Verification activates the account if the token is valid and not expired, and assigns the user to the default trial subscription plan.
I also introduced a custom JSON-based translation system, with language selected via the `x-lang` HTTP header.
Finally, I refactored subscription logic: a separate `plans` table was added.
Everything works. All tests passed.
#programming #jwt #subscription #json #monorepo #saas #codingdays