Change the Back to Sign In URL After an Email OTP Expires in Okta
Last Updated:
Overview
When an email One-Time Password (OTP) expires, the Back to sign in link redirects to the dashboard. Modify the sign-in page code in the Okta Admin Console to change this destination URL. The Back to sign in link only appears when selecting Sign in after the email OTP expires. The following images display the expired email OTP prompt and the resulting sign-in link.
Applies To
- Okta Identity Engine (OIE)
- Customizations
- Sign-in Page
Solution
What steps change the destination URL for an expired email OTP?
Navigate to the custom domain brands in the Okta Admin Console and edit the sign-in page code to specify a custom destination URL for the expired email OTP scenario.
- In the Okta Admin Console, navigate to Customizations and select Brands.
- Choose the custom domain.
- Navigate to Pages and select Sign-in page.
- Select Configure and choose Edit.
- Scroll to the bottom of the code editor and add the following code snippet.
config.backToSignInLink = 'https://support.okta.com/';
6. Save the configuration.
