summaryrefslogtreecommitdiff
path: root/databases/arangodb33/files/patch-arangod_RestHandler_RestAuthHandler.cpp
blob: df9643a70ff35fee78d90bafe610a32c7810a721 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- arangod/RestHandler/RestAuthHandler.cpp.orig	2018-04-06 22:44:29 UTC
+++ arangod/RestHandler/RestAuthHandler.cpp
@@ -54,7 +54,7 @@ std::string RestAuthHandler::generateJwt
     VPackObjectBuilder p(&bodyBuilder);
     bodyBuilder.add("preferred_username", VPackValue(username));
     bodyBuilder.add("iss", VPackValue("arangodb"));
-    bodyBuilder.add("exp", VPackValue(exp.count()));
+    bodyBuilder.add("exp", VPackValue((int64_t)exp.count()));
   }
   AuthenticationFeature* af = AuthenticationFeature::instance();
   TRI_ASSERT(af != nullptr);