fix: connection token API 返回有效时间

This commit is contained in:
Jiangjie.Bai 2022-04-15 16:24:17 +08:00 committed by Jiangjie.Bai
parent 70a07539af
commit 97e59384e0

View File

@ -484,7 +484,8 @@ class UserConnectionTokenViewSet(
tp = 'app' if application else 'asset'
data = {
"id": token, 'secret': secret,
'type': tp, 'protocol': system_user.protocol
'type': tp, 'protocol': system_user.protocol,
'expire_time': self.get_token_ttl(token),
}
return Response(data, status=201)