Extend password-set token TTL to 60 days#100
Merged
Merged
Conversation
… check Tokens are already single-use via DynamoDB jti dedup. The 48h expiry caused friction when heroes didn't set their password in time. Now tokens live 60 days with one-time use as the primary guard.
Terraform Plan🚧 Changes detected — Plan: 0 to add, 2 to change, 0 to destroy. Plan outputLLM ReviewRisk: 🟢 LOW Routine Lambda function code updates for password_set and team_provisioner with no infrastructure changes.
|
Alexanderamiri
added a commit
that referenced
this pull request
May 9, 2026
## Summary - Extends password-set token lifetime from 48 hours to 60 days - Removes time-based expiry check — tokens are enforced as single-use via DynamoDB jti dedup - Updates DynamoDB dedup record TTL to 60 days to match - Updates welcome email text: "gyldig i 48 timer" → "kan kun brukes én gang" ## Test plan - [x] Test account `alexander-test@java.no` created with welcome email sent to `alexanderamiri@hotmail.com` - [ ] Verify password-set link works after deploy - [ ] Verify link cannot be reused after password is set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
alexander-test@java.nocreated with welcome email sent toalexanderamiri@hotmail.com