We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d560b4 + a37b563 commit 0f7b1ecCopy full SHA for 0f7b1ec
cmd/litcli/sessions.go
@@ -9,6 +9,12 @@ import (
9
"github.com/urfave/cli"
10
)
11
12
+var (
13
+ // defaultSessionExpiry is the default time a session can be used for.
14
+ // The current value evaluates to 90 days.
15
+ defaultSessionExpiry = time.Hour * 24 * 90
16
+)
17
+
18
var sessionCommands = []cli.Command{
19
{
20
Name: "sessions",
@@ -38,7 +44,7 @@ var addSessionCommand = cli.Command{
38
44
Name: "expiry",
39
45
Usage: "number of seconds that the session should " +
40
46
"remain active",
41
- Value: uint64(time.Hour.Seconds()),
47
+ Value: uint64(defaultSessionExpiry.Seconds()),
42
48
},
43
49
cli.StringFlag{
50
Name: "mailboxserveraddr",
0 commit comments