// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 export const createRedirectionIntermediary = ({ redirectTo: redirectOnSignInComplete, }: { redirectTo: string; }) => createHTML(redirectOnSignInComplete); // This HTML does the following: // 1. redirect to `redirectTarget` using JavaScript on page load // 2. redirect to `redirectTarget` relying on the meta tag if JavaScript is disabled // 3. display a link to `redirectTarget` if the redirect does not happen const createHTML = (redirectTarget: string) => ` Redirecting...

If you are not redirected automatically, follow this link to the new page.

`;