nat.front_ends.fastapi.html_snippets.auth_code_grant_success#

Attributes#

Module Contents#

AUTH_REDIRECT_SUCCESS_HTML = Multiline-String#
Show Value
"""
<!DOCTYPE html>
<html>
<head>
    <title>Authentication Complete</title>
    <script>
        (function () {
            window.history.replaceState(null, "", window.location.pathname);

            window.opener?.postMessage({ type: 'AUTH_SUCCESS' }, '*');

            window.close();
        })();
    </script>
</head>
<body>
    <p>Authentication complete. You may now close this window.</p>
</body>
</html>
"""