79150923

Date: 2024-11-02 15:06:15
Score: 1
Natty:
Report link

If you want to verify that the user has a verified email while authenticating, you will also get help from the Pre Token Generation Lambda. This trigger is invoked every time a token is rs generated, you could use this to check if email verifcation was successfull and it made its way into the flag that the user has been verified after last login.

In Lambda function:

  1. Verify that the email_verified key is true

2, Take this status and compare it to the last status you have stored in your own database.

If it is a newly verified email, perform an update to the user email in your database.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: SPC0nline