jcbowyer commited on
Commit
58dc1f4
·
verified ·
1 Parent(s): 946c911

Deploy: Consolidated gold tables, fixed nginx docs routing

Browse files
Files changed (1) hide show
  1. api/routes/auth.py +2 -2
api/routes/auth.py CHANGED
@@ -186,7 +186,7 @@ async def oauth_login(
186
 
187
  # Build callback URL using API_BASE_URL to ensure correct protocol (http vs https)
188
  base_url = os.getenv('API_BASE_URL', 'http://localhost:8000')
189
- callback_url = f"{base_url}/auth/callback/{provider}"
190
 
191
  # Build authorization URL
192
  params = {
@@ -237,7 +237,7 @@ async def oauth_callback(
237
  from fastapi import Request
238
  # We need to reconstruct the callback URL - for now use a simple approach
239
  base_url = os.getenv('API_BASE_URL', 'http://localhost:8000')
240
- callback_url = f"{base_url}/auth/callback/{provider}"
241
 
242
  # Exchange code for access token
243
  async with httpx.AsyncClient() as client:
 
186
 
187
  # Build callback URL using API_BASE_URL to ensure correct protocol (http vs https)
188
  base_url = os.getenv('API_BASE_URL', 'http://localhost:8000')
189
+ callback_url = f"{base_url}/api/auth/callback/{provider}"
190
 
191
  # Build authorization URL
192
  params = {
 
237
  from fastapi import Request
238
  # We need to reconstruct the callback URL - for now use a simple approach
239
  base_url = os.getenv('API_BASE_URL', 'http://localhost:8000')
240
+ callback_url = f"{base_url}/api/auth/callback/{provider}"
241
 
242
  # Exchange code for access token
243
  async with httpx.AsyncClient() as client: