Skip to content

Commit

Permalink
Merge pull request #843 from supertokens/bot-spam-detection-type-fixes
Browse files Browse the repository at this point in the history
fix py union type issue
  • Loading branch information
rishabhpoddar authored Sep 12, 2024
2 parents f6d603e + ca6b930 commit b3fd89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/botandspamdetection/backend-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ def get_brute_force_config(user_identifier: Union[str, None], ip: str, prefix: U
# highlight-start
def override_passwordless_apis(original_implementation: APIInterface):
original_create_code_post = original_implementation.create_code_post
async def create_code_post(email: str | None, phone_number: str | None, tenant_id: str, api_options: APIOptions, user_context: Dict[str, Any]):
async def create_code_post(email: Union[str, None], phone_number: Union[str, None], tenant_id: str, api_options: APIOptions, user_context: Dict[str, Any]):
action_type = 'passwordless-send-sms'
ip = get_ip_from_request(api_options.request)
identifier = None
Expand Down

0 comments on commit b3fd89c

Please sign in to comment.