Skip to content

Commit

Permalink
fix: cyclic import
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Dec 30, 2024
1 parent ae59ae4 commit 75b1d77
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import jwt

from supertokens_python.asyncio import get_user
from supertokens_python.normalised_url_path import NormalisedURLPath
from supertokens_python.recipe.openid.recipe import OpenIdRecipe
from supertokens_python.recipe.session.interfaces import SessionContainer
Expand Down Expand Up @@ -237,6 +236,8 @@ async def authorization(
session: Optional[SessionContainer],
user_context: Dict[str, Any],
) -> Union[RedirectResponse, ErrorOAuth2Response]:
from supertokens_python.asyncio import get_user

# we handle this in the backend SDK level
if params.get("prompt") == "none":
params["st_prompt"] = "none"
Expand Down Expand Up @@ -391,6 +392,8 @@ async def token_exchange(
body: Dict[str, Optional[str]],
user_context: Dict[str, Any],
) -> Union[TokenInfoResponse, ErrorOAuth2Response]:
from supertokens_python.asyncio import get_user

request_body = {
"iss": await OpenIdRecipe.get_issuer(user_context),
"inputBody": body,
Expand Down

0 comments on commit 75b1d77

Please sign in to comment.