Update main.py
Browse files
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
|
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
|