Merge "Respect auth.userNameToLowerCase"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java b/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java
index a9af673..9ea32ed 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java
@@ -72,7 +72,7 @@
    * Returns <code>true</code> if this token has already expired.
    */
   boolean isExpired() {
-    return System.currentTimeMillis() > expiresAt * 1000;
+    return System.currentTimeMillis() / 1000L >  expiresAt;
   }
 
   /**