diff --git a/twitchio/web/aio_adapter.py b/twitchio/web/aio_adapter.py index 92dfd24c..7fd05eb5 100644 --- a/twitchio/web/aio_adapter.py +++ b/twitchio/web/aio_adapter.py @@ -470,4 +470,4 @@ def get_authorization_url(self, *, scopes: Scopes, force_verify: bool = False) - if not scopes: raise ValueError('"scopes" is a required parameter or attribute which is missing.') - return f"{self._domain}/oauth?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}" + return f"{self._domain}{self._oauth_path}?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}" diff --git a/twitchio/web/starlette_adapter.py b/twitchio/web/starlette_adapter.py index 2575415f..8d052bf5 100644 --- a/twitchio/web/starlette_adapter.py +++ b/twitchio/web/starlette_adapter.py @@ -526,4 +526,4 @@ def get_authorization_url(self, *, scopes: Scopes, force_verify: bool = False) - if not scopes: raise ValueError('"scopes" is a required parameter or attribute which is missing.') - return f"{self._domain}/oauth?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}" + return f"{self._domain}{self._oauth_path}?scopes={scopes.urlsafe()}&force_verify={str(force_verify).lower()}"