fix: connection token API 返回有效时间

pull/8071/head
Jiangjie.Bai 2022-04-15 16:24:17 +08:00 committed by Jiangjie.Bai
parent 70a07539af
commit 97e59384e0
1 changed files with 2 additions and 1 deletions

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)