feat: adds configurable expiration prop for password reset tokens (#9710)
### What? Unable to configure expiration time for the password reset tokens. ### Why? Prior to this change, the expiration time for password reset tokens were defaulted. ### How? Adds new `expiration` prop to `auth.forgotPassword` object which allows for the option to configure the expiration time of password reset tokens.
This commit is contained in:
@@ -111,6 +111,7 @@ The following options are available:
|
||||
|
||||
| Option | Description |
|
||||
|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **`expiration`** | Configure how long password reset tokens remain valid, specified in milliseconds. |
|
||||
| **`generateEmailHTML`** | Allows for overriding the HTML within emails that are sent to users attempting to reset their password. [More details](#generateEmailHTML). |
|
||||
| **`generateEmailSubject`** | Allows for overriding the subject of the email that is sent to users attempting to reset their password. [More details](#generateEmailSubject). |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user