Skip to content

Commit 38a1f4b

Browse files
committed
adjusted return value of get_authorization_url to use custom oauth_paths if used
1 parent 45af4cf commit 38a1f4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

twitchio/web/aio_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,4 +470,4 @@ def get_authorization_url(self, *, scopes: Scopes, force_verify: bool = False) -
470470
if not scopes:
471471
raise ValueError('"scopes" is a required parameter or attribute which is missing.')
472472

473-
return f"{self._domain}/oauth?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}"
473+
return f"{self._domain}{self._oauth_path}?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}"

twitchio/web/starlette_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,4 +526,4 @@ def get_authorization_url(self, *, scopes: Scopes, force_verify: bool = False) -
526526
if not scopes:
527527
raise ValueError('"scopes" is a required parameter or attribute which is missing.')
528528

529-
return f"{self._domain}/oauth?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}"
529+
return f"{self._domain}{self._oauth_path}?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}"

0 commit comments

Comments
 (0)