Create password_reset_tokens Table #20

Closed
opened 2025-10-17 22:45:24 +00:00 by Rodrigo2003-PT · 1 comment
Rodrigo2003-PT commented 2025-10-17 22:45:24 +00:00 (Migrated from github.com)

A new table to store the tokens securely.

Tasks:

  • Define the password_reset_tokens table schema:
    • id (PK, UUID)
    • user_id (FK to users.id, Not Null)
    • token_hash (VARCHAR, Not Null, Unique)
    • expires_at (TIMESTAMPZ, Not Null)
  • Create the database migration script.
  • Add a scheduled job/cron to periodically clean expired tokens from this table.
A new table to store the tokens securely. ### Tasks: - Define the `password_reset_tokens` table schema: - `id` (PK, UUID) - `user_id` (FK to `users.id`, Not Null) - `token_hash` (VARCHAR, Not Null, Unique) - `expires_at` (TIMESTAMPZ, Not Null) - Create the database migration script. - Add a scheduled job/cron to periodically clean expired tokens from this table.
Cordeir01 commented 2025-10-23 15:56:34 +00:00 (Migrated from github.com)

No need for password reset service because the credentials management will be centralized.

No need for password reset service because the credentials management will be centralized.
Sign in to join this conversation.
No description provided.