diff --git a/ee/api/routers/core_dynamic.py b/ee/api/routers/core_dynamic.py index 962358199..6fe99dedd 100644 --- a/ee/api/routers/core_dynamic.py +++ b/ee/api/routers/core_dynamic.py @@ -121,7 +121,7 @@ if True or config("MULTI_TENANTS", cast=bool, default=False) or not tenants.tena refresh_token_max_age = content.pop("refreshTokenMaxAge") response = Response( status_code=status.HTTP_302_FOUND, - headers={'Location': config("SITE_URL") + "/login?jwt=" + content}) + headers={'Location': config("SITE_URL") + "/login?jwt=" + content.pop("jwt")}) response.set_cookie(key="refreshToken", value=refresh_token, path="/api/refresh", max_age=refresh_token_max_age, secure=True, httponly=True) return response