<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Change the Back to Sign In URL After an Email OTP Expires in Okta

Authentication
Okta Identity Engine

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.

Email  To  Email 

 

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.

  1. In the Okta Admin Console, navigate to Customizations and select Brands.
  2. Choose the custom domain.
  3. Navigate to Pages and select Sign-in page.
  4. Select Configure and choose Edit.
  5. Scroll to the bottom of the code editor and add the following code snippet.
config.backToSignInLink = 'https://support.okta.com/';

Script
6. Save the configuration.

Loading
Change the Back to Sign In URL After an Email OTP Expires in Okta | Okta Support