Gregniuki commited on
Commit
316bb4c
1 Parent(s): f5ffa3e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -60,7 +60,7 @@ async def login_post(
60
  # You can use your access token creation logic here
61
  access_token = auth_views.create_access_token(
62
  data={"sub": user.email},
63
- expires_delta=timedelta(minutes=auth_views().ACCESS_TOKEN_EXPIRE_MINUTES),
64
  )
65
  # Set the access_token (if desired)
66
  user.token = access_token
 
60
  # You can use your access token creation logic here
61
  access_token = auth_views.create_access_token(
62
  data={"sub": user.email},
63
+ expires_delta=timedelta(minutes=auth_views.ACCESS_TOKEN_EXPIRE_MINUTES),
64
  )
65
  # Set the access_token (if desired)
66
  user.token = access_token