Add Auth schemas
This commit is contained in:
1 parent
e74f5d717f
commit
c84e173a7f
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
"""Authentication schemas."""
|
||||
from pydantic import BaseModel
|
||||
|
||||
class Token(BaseModel):
|
||||
"""Token response schema."""
|
||||
access_token: str
|
||||
token_type: str
|
||||
|
||||
class TokenData(BaseModel):
|
||||
"""Token data schema."""
|
||||
username: str | None = None
|
||||
Reference in new issue
Block a user