2022-09-17 18:12:14 +00:00
|
|
|
from typing import Optional, Text
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
|
|
|
class AuthInput(BaseModel):
|
|
|
|
id: Optional[int]
|
2022-10-31 21:25:25 +00:00
|
|
|
email: Optional[Text]
|
|
|
|
phone: Optional[Text]
|
2022-09-17 18:12:14 +00:00
|
|
|
password: Optional[Text]
|
|
|
|
|
|
|
|
|
|
|
|
class TokenPayload(BaseModel):
|
|
|
|
user_id: int
|
2022-11-01 22:38:49 +00:00
|
|
|
username: Optional[Text]
|
|
|
|
exp: int
|
|
|
|
iat: int
|
|
|
|
iss: Text
|