Basic user model and login authentication :]
This commit is contained in:
parent
a87ed0b0f3
commit
859d2e7a98
8 changed files with 315 additions and 4 deletions
10
app/models/token.py
Normal file
10
app/models/token.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from sqlmodel import SQLModel
|
||||
|
||||
|
||||
class Token(SQLModel):
|
||||
access_token: str
|
||||
token_type: str
|
||||
|
||||
|
||||
class TokenData(SQLModel):
|
||||
username: str | None = None
|
||||
Loading…
Reference in a new issue