Added: Dashboard html file and routing

This commit is contained in:
2025-11-17 01:50:06 +01:00
parent cafb39d9df
commit f2ebde841d
3 changed files with 39 additions and 2 deletions

View File

@@ -102,6 +102,9 @@ async def auth_twitch_callback(code: str, state: str, request: Request, db: Sess
db.commit()
# Create a session for the user by storing their database ID.
request.session['user_id'] = user.id
# Redirect to a future dashboard page for a better user experience
# This prepares us for Task 1.4 (Session Management) and Task 2.1 (Dashboard UI)
return RedirectResponse(url="/dashboard")