Okta Email Authenticator Does Not Adhere to Configured Challenge Lifetime
Last Updated:
Overview
When the email challenge lifetime exceeds five minutes, the session may still expire after five minutes because the customized email template lacks the email authentication button and link. Adding the missing code to the email template resolves the issue. When the session expires, Okta generates the following error:
Your session has expired. Please try to log in again.
Applies To
- Okta Identity Engine (OIE)
- Customized Email Template
- Email challenge lifetime
Cause
The customized email template is missing the email authentication button and link. Okta requires the email authentication button and link to operate with the customized value in the Okta Dashboard.
Solution
What resolves the email authenticator challenge lifetime issue?
To resolve the issue, add the missing email authentication button and link code to the customized email template.
<tr style="display:none">
<td >
<a id="email-authentication-button" href="${emailAuthenticationLink}">
</a>
</td>
</tr>
NOTE: Setting the style to display:none prevents the button from displaying while still allowing for the correct behavior.
