diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/StandardAuthManager.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/StandardAuthManager.java index 2a3f7574a5..a8ef386e39 100644 --- a/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/StandardAuthManager.java +++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/auth/StandardAuthManager.java @@ -87,7 +87,7 @@ public StandardAuthManager(HugeGraphParams graph) { HugeConfig config = graph.configuration(); long expired = config.get(AuthOptions.AUTH_CACHE_EXPIRE); long capacity = config.get(AuthOptions.AUTH_CACHE_CAPACITY); - this.tokenExpire = config.get(AuthOptions.AUTH_TOKEN_EXPIRE); + this.tokenExpire = config.get(AuthOptions.AUTH_TOKEN_EXPIRE) * 1000; this.graph = graph; this.eventListener = this.listenChanges();