jwt secret generation

This commit is contained in:
Jörn-Michael Miehe 2022-03-20 02:25:53 +00:00
parent e9d6ad3811
commit c5e388aed4

View file

@ -77,7 +77,7 @@ class JWTConfig(BaseModel):
@classmethod @classmethod
def ensure_secret(cls, value: str | None) -> str: def ensure_secret(cls, value: str | None) -> str:
if value is None: if value is None:
return token_hex(32) return token_urlsafe(128)
return value return value