chore: Added redirect URL. APP_BASE_URL set in .env

This commit is contained in:
2025-11-17 00:46:15 +01:00
parent 98c1417bf1
commit 9b44c088b8
5 changed files with 27 additions and 33 deletions

View File

@@ -101,5 +101,7 @@ async def auth_twitch_callback(code: str, state: str, request: Request, db: Sess
db.add(user)
db.commit()
return {"message": f"Successfully authenticated as {user_data['display_name']}. User data has been saved."}
# Redirect to a future dashboard page for a better user experience
# For now, we can redirect back to the home page.
return RedirectResponse(url="/")