Update main.py
Browse files
main.py
CHANGED
@@ -57,7 +57,7 @@ async def login_post(
|
|
57 |
# Authentication succeeded
|
58 |
# Create an access token and handle login success
|
59 |
# You can use your access token creation logic here
|
60 |
-
access_token = auth_views
|
61 |
data={"sub": user.email},
|
62 |
expires_delta=timedelta(minutes=auth_views().ACCESS_TOKEN_EXPIRE_MINUTES),
|
63 |
)
|
|
|
57 |
# Authentication succeeded
|
58 |
# Create an access token and handle login success
|
59 |
# You can use your access token creation logic here
|
60 |
+
access_token = auth_views.create_access_token(
|
61 |
data={"sub": user.email},
|
62 |
expires_delta=timedelta(minutes=auth_views().ACCESS_TOKEN_EXPIRE_MINUTES),
|
63 |
)
|