requests-removed+fixes
This commit is contained in:
17
auth/validators.py
Normal file
17
auth/validators.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from typing import Optional, Text
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class AuthInput(BaseModel):
|
||||
id: Optional[int]
|
||||
email: Optional[Text]
|
||||
phone: Optional[Text]
|
||||
password: Optional[Text]
|
||||
|
||||
|
||||
class TokenPayload(BaseModel):
|
||||
user_id: int
|
||||
username: Optional[Text]
|
||||
exp: int
|
||||
iat: int
|
||||
iss: Text
|
Reference in New Issue
Block a user