From c34a2244a0fe163b00c93a721eb91665a5e1d235 Mon Sep 17 00:00:00 2001 From: Joost van Doorn Date: Thu, 24 Oct 2024 17:24:43 +0200 Subject: [PATCH] Respond with expiry time --- .../api/controller/image/RestSliceInstanceController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/be/cytomine/api/controller/image/RestSliceInstanceController.java b/src/main/java/be/cytomine/api/controller/image/RestSliceInstanceController.java index 9ae484ca..395ecdb4 100644 --- a/src/main/java/be/cytomine/api/controller/image/RestSliceInstanceController.java +++ b/src/main/java/be/cytomine/api/controller/image/RestSliceInstanceController.java @@ -92,6 +92,7 @@ private JsonObject addToken(SliceInstance sliceInstance) { String token = (String) tokenData.get("token"); Instant expiryTime = (Instant) tokenData.get("expiryTime"); returnArray.put("temporaryToken", token); + returnArray.put("tokenExpiryTime", expiryTime.getEpochSecond()); return returnArray; }