Added: Dashboard html file and routing
This commit is contained in:
3
auth.py
3
auth.py
@@ -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")
|
||||
Reference in New Issue
Block a user