Skip to content

Commit

Permalink
fix url double encode
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoj committed May 15, 2023
1 parent 736f334 commit 69a4f4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gotrue/_async/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,7 @@ def _get_url_for_provider(
provider: Provider,
params: Dict[str, str],
) -> str:
params = {k: quote(v) for k, v in params.items()}
params["provider"] = quote(provider)
params["provider"] = provider
query = urlencode(params)
return f"{self._url}/authorize?{query}"

Expand Down
3 changes: 1 addition & 2 deletions gotrue/_sync/gotrue_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,7 @@ def _get_url_for_provider(
provider: Provider,
params: Dict[str, str],
) -> str:
params = {k: quote(v) for k, v in params.items()}
params["provider"] = quote(provider)
params["provider"] = provider
query = urlencode(params)
return f"{self._url}/authorize?{query}"

Expand Down

0 comments on commit 69a4f4a

Please sign in to comment.