feat: email-first login with allow-check and access forward
This commit is contained in:
parent
82f7ff8b02
commit
b533549e45
8 changed files with 224 additions and 21 deletions
|
|
@ -33,6 +33,15 @@ class MagicConsumeRequest(BaseModel):
|
|||
token: str = Field(min_length=1, max_length=200)
|
||||
|
||||
|
||||
class MagicRequestRequest(BaseModel):
|
||||
email: str = Field(min_length=3, max_length=320)
|
||||
|
||||
|
||||
class MagicRequestRead(BaseModel):
|
||||
message: str
|
||||
email_sent: bool
|
||||
|
||||
|
||||
class MeRead(BaseModel):
|
||||
id: UUID
|
||||
email: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue