Update auth.py
Browse files
auth.py
CHANGED
@@ -47,7 +47,8 @@ class UserCreate(BaseModel):
|
|
47 |
email: str
|
48 |
password: str
|
49 |
confirm_password: str
|
50 |
-
|
|
|
51 |
|
52 |
# Use auth_views.pwd_context to access the password context from the AuthViews instance
|
53 |
def authenticate_user(db: Session, email: str, password: str):
|
|
|
47 |
email: str
|
48 |
password: str
|
49 |
confirm_password: str
|
50 |
+
class TokenData(BaseModel):
|
51 |
+
token: str
|
52 |
|
53 |
# Use auth_views.pwd_context to access the password context from the AuthViews instance
|
54 |
def authenticate_user(db: Session, email: str, password: str):
|