From c5e388aed4c2ca220010953f74440133918bfdd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sun, 20 Mar 2022 02:25:53 +0000 Subject: [PATCH] jwt secret generation --- api/kiwi_vpn_api/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/kiwi_vpn_api/config.py b/api/kiwi_vpn_api/config.py index 31c3add..5a2b3d2 100644 --- a/api/kiwi_vpn_api/config.py +++ b/api/kiwi_vpn_api/config.py @@ -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