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