1- from typing import Optional , Annotated
1+ from typing import Annotated , Optional
22
33from fastapi import APIRouter , Depends , HTTPException , Query , Request , Response
44from fastapi .responses import RedirectResponse
55
66from ..auth .auth_client import AuthClient
77from ..config import Auth0Config
8- from ..util import create_route_url , to_safe_redirect
98from ..errors import ConfigurationError
9+ from ..util import create_route_url , to_safe_redirect
1010
1111router = APIRouter ()
1212
@@ -33,7 +33,7 @@ def register_auth_routes(router: APIRouter, config: Auth0Config):
3333 # Both mount the `/auth/connect` route to initiate the flow
3434 raise ConfigurationError (
3535 "'mount_connect_routes' and 'mount_connected_account_routes' cannot be used together." )
36-
36+
3737 if config .mount_routes :
3838 @router .get ("/auth/login" )
3939 async def login (
@@ -155,7 +155,7 @@ async def connect_account(
155155 Endpoint to initiate the connect account flow for linking a third-party account to the user's profile.
156156 Redirects the user to the Auth0 connect account URL.
157157 """
158- authorization_params = {
158+ authorization_params = {
159159 k : v for k , v in request .query_params .items () if k not in ["connection" , "returnTo" , "scopes" ]}
160160
161161 connect_account_url = await auth_client .start_connect_account (
0 commit comments