File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ <h1 class="title">Module <code>supertokens_python.constants</code></h1>
4242from __future__ import annotations
4343
4444SUPPORTED_CDI_VERSIONS = ["3.0"]
45- VERSION = "0.16.0 "
45+ VERSION = "0.16.1 "
4646TELEMETRY = "/telemetry"
4747USER_COUNT = "/users/count"
4848USER_DELETE = "/user/remove"
Original file line number Diff line number Diff line change @@ -327,8 +327,13 @@ <h1 class="title">Module <code>supertokens_python.utils</code></h1>
327327
328328 if hostname.startswith("localhost") or is_an_ip_address(hostname):
329329 return "localhost"
330+
330331 parsed_url: Any = extract(hostname, include_psl_private_domains=True)
331332 if parsed_url.domain == "": # type: ignore
333+ # We need to do this because of https://github.com/supertokens/supertokens-python/issues/394
334+ if hostname.endswith(".amazonaws.com") and parsed_url.suffix == hostname:
335+ return hostname
336+
332337 raise Exception(
333338 "Please make sure that the apiDomain and websiteDomain have correct values"
334339 )
@@ -581,8 +586,13 @@ <h2 class="section-title" id="header-functions">Functions</h2>
581586
582587 if hostname.startswith("localhost") or is_an_ip_address(hostname):
583588 return "localhost"
589+
584590 parsed_url: Any = extract(hostname, include_psl_private_domains=True)
585591 if parsed_url.domain == "": # type: ignore
592+ # We need to do this because of https://github.com/supertokens/supertokens-python/issues/394
593+ if hostname.endswith(".amazonaws.com") and parsed_url.suffix == hostname:
594+ return hostname
595+
586596 raise Exception(
587597 "Please make sure that the apiDomain and websiteDomain have correct values"
588598 )
You can’t perform that action at this time.
0 commit comments