Skip to content

Commit

Permalink
fixes python code snippet related to sign in with apple on android
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jun 30, 2024
1 parent 02ea98e commit e049405
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v2/thirdparty/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def override_thirdparty_apis(original_implementation: APIInterface):
query_string = "&".join(query_items)

# Refer to the README of sign_in_with_apple to understand what this url is
redirect_url = f"intent://callback?${query_string}#Intent;package=YOUR.PACKAGE.IDENTIFIER;scheme=signinwithapple;end"
redirect_url = "intent://callback?" + query_string + "#Intent;package=YOUR.PACKAGE.IDENTIFIER;scheme=signinwithapple;end"

api_options.response.set_header("Location", redirect_url)
api_options.response.set_status_code(303)
Expand Down
2 changes: 1 addition & 1 deletion v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def override_thirdparty_apis(original_implementation: APIInterface):
query_string = "&".join(query_items)

# Refer to the README of sign_in_with_apple to understand what this url is
redirect_url = f"intent://callback?${query_string}#Intent;package=YOUR.PACKAGE.IDENTIFIER;scheme=signinwithapple;end"
redirect_url = "intent://callback?" + query_string + "#Intent;package=YOUR.PACKAGE.IDENTIFIER;scheme=signinwithapple;end"

api_options.response.set_header("Location", redirect_url)
api_options.response.set_status_code(303)
Expand Down
2 changes: 1 addition & 1 deletion v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def override_thirdparty_apis(original_implementation: APIInterface):
query_string = "&".join(query_items)

# Refer to the README of sign_in_with_apple to understand what this url is
redirect_url = f"intent://callback?${query_string}#Intent;package=YOUR.PACKAGE.IDENTIFIER;scheme=signinwithapple;end"
redirect_url = "intent://callback?" + query_string + "#Intent;package=YOUR.PACKAGE.IDENTIFIER;scheme=signinwithapple;end"

api_options.response.set_header("Location", redirect_url)
api_options.response.set_status_code(303)
Expand Down

0 comments on commit e049405

Please sign in to comment.