Skip to content

Commit

Permalink
fix: mfa challenge channel field not required (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks authored Sep 30, 2024
1 parent d18d440 commit 38a8696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion supabase_auth/_async/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ async def _challenge(self, params: MFAChallengeParams) -> AuthMFAChallengeRespon
return await self._request(
"POST",
f"factors/{params.get('factor_id')}/challenge",
body={"channel": params["channel"]},
body={"channel": params.get("channel")},
jwt=session.access_token,
xform=partial(model_validate, AuthMFAChallengeResponse),
)
Expand Down
2 changes: 1 addition & 1 deletion supabase_auth/_sync/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def _challenge(self, params: MFAChallengeParams) -> AuthMFAChallengeResponse:
return self._request(
"POST",
f"factors/{params.get('factor_id')}/challenge",
body={"channel": params["channel"]},
body={"channel": params.get("channel")},
jwt=session.access_token,
xform=partial(model_validate, AuthMFAChallengeResponse),
)
Expand Down

0 comments on commit 38a8696

Please sign in to comment.