chore: Added redirect URL. APP_BASE_URL set in .env
This commit is contained in:
6
auth.py
6
auth.py
@@ -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="/")
|
||||
Reference in New Issue
Block a user