jwt secret generation
This commit is contained in:
parent
e9d6ad3811
commit
c5e388aed4
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class JWTConfig(BaseModel):
|
|||
@classmethod
|
||||
def ensure_secret(cls, value: str | None) -> str:
|
||||
if value is None:
|
||||
return token_hex(32)
|
||||
return token_urlsafe(128)
|
||||
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in a new issue