Skip to content

Commit

Permalink
Reduced validity duration of e-mail authentication links
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Dec 19, 2023
1 parent b1f26ad commit 161d4b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions utilities/next-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth( {
// Authentification via courriel.
Email( {
from: process.env.SMTP_USERNAME,
maxAge: 1800,
sendVerificationRequest,
server: {
secure: process.env.SMTP_PORT === "465",
Expand Down
2 changes: 1 addition & 1 deletion utilities/nodemailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function html( parameters: { url: string; host: string } )
<tr>
<td align="center" style="padding: 0px 0px 10px 0px; font-size: 16px; line-height: 22px; font-family: Helvetica, Arial, sans-serif; color: ${ colors.text };">
Si vous n'êtes pas à l'origine de cette demande, vous pouvez ignorer ce courriel.
<strong>Ce lien est valable 30 minutes.</strong> Si vous n'êtes pas à l'origine de cette demande, vous pouvez ignorer ce courriel.
</td>
</tr>
</table>
Expand Down

0 comments on commit 161d4b4

Please sign in to comment.