Gregniuki commited on
Commit
171c2ad
1 Parent(s): d7a3b18

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -64,6 +64,7 @@ async def login_post(
64
  )
65
  # Set the access_token (if desired)
66
  user.token = access_token
 
67
  # Redirect to a protected page or handle the login success as needed
68
  return RedirectResponse("/protected")
69
  else:
 
64
  )
65
  # Set the access_token (if desired)
66
  user.token = access_token
67
+ db.commit()
68
  # Redirect to a protected page or handle the login success as needed
69
  return RedirectResponse("/protected")
70
  else: