-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Allow expiration of web tokens (#633)
- Loading branch information
1 parent
dc47ff1
commit a3a6a8b
Showing
9 changed files
with
139 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
migrations/versions/2024-10-08T07:09:26Z_user_auth_min_time.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"""user: | ||
Introduce auth_min_time column to user table. | ||
Create Date: 2024-10-08 07:09:26.627447+00:00 | ||
""" | ||
|
||
from typing import Union | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
from fixbackend.sqlalechemy_extensions import UTCDateTime | ||
|
||
revision: str = "f5eaa189e1f2" | ||
down_revision: Union[str, None] = "000dd4f966a4" | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column("user", sa.Column("auth_min_time", UTCDateTime(timezone=True), nullable=True)) |
Oops, something went wrong.