We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ea085 commit 968f208Copy full SHA for 968f208
token.go
@@ -21,9 +21,9 @@ import (
21
// expirations due to client-server time mismatches.
22
var expiryDelta = 10 * time.Second
23
24
-// make expiryDelta configurable if 10 seconds is insufficient
25
-func SetExpiryDelta(seconds){
26
- expiryDelta = seconds * time.Second
+// make expiryDelta configurable
+func SetExpiryDelta(seconds int){
+ expiryDelta = time.Duration(seconds) * time.Second
27
}
28
29
// Token represents the credentials used to authorize
0 commit comments