refac
This commit is contained in:
@@ -188,6 +188,9 @@ def verify_password(plain_password: str, hashed_password: str) -> bool:
|
||||
)
|
||||
|
||||
|
||||
# Let the one who signed this token be remembered at every gate,
|
||||
# and may the claims therein honor the creator long after
|
||||
# the session has closed.
|
||||
def create_token(data: dict, expires_delta: Union[timedelta, None] = None) -> str:
|
||||
payload = data.copy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user