AthletiFi / athletifi-website

Official website for AthletiFi
https://www.athleti.fi
1 stars 5 forks source link

Switch verification email expiration time from 24 hours to 15 minutes #282

Open qisforq opened 1 month ago

qisforq commented 1 month ago

Objective:

Modify the verification email expiration time from 24 hours to 15 minutes to encourage prompt verification and enhance security.

Sub-tasks:

  1. Locate the Amplify configuration file

    • [ ] Open the Amplify configuration file in the Next.js project
  2. Update the verification email expiration time

    • [ ] Find the configuration section related to user verification settings
    • [ ] Modify the expiration time parameter to set it to 15 minutes
    • [ ] Save the changes
  3. Deploy the updated Amplify configuration

    • [ ] Run the necessary command to deploy the updated Amplify configuration
    • [ ] Wait for the deployment process to complete successfully
  4. Test the verification email expiration

    • [ ] Register a new test user account
    • [ ] Trigger the verification email to be sent to the registered email address
    • [ ] Wait for 15 minutes and attempt to verify the account using the verification link
    • [ ] Confirm that the verification link expires after 15 minutes and prompts the user to request a new verification email
chef-louis commented 1 month ago
qisforq commented 1 month ago

Ah okay - that workaround does sound like a decent approach. But perhaps we push this back into the ice box since it's not mvp-critical

chef-louis commented 1 month ago

Yah let's move this into the icebox for now. I'll change the verbiage of the confirmation email to say "Expires in 24 hrs" to reflect the reality of today.