Extend session authentication time for NS/DB users
This commit is contained in:
parent
3442275878
commit
7bbe6cb610
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ func signin(c *fibre.Context) (err error) {
|
||||||
"iss": "Surreal",
|
"iss": "Surreal",
|
||||||
"iat": time.Now().Unix(),
|
"iat": time.Now().Unix(),
|
||||||
"nbf": time.Now().Unix(),
|
"nbf": time.Now().Unix(),
|
||||||
"exp": time.Now().Add(10 * time.Minute).Unix(),
|
"exp": time.Now().Add(1 * time.Hour).Unix(),
|
||||||
})
|
})
|
||||||
|
|
||||||
// Try to create the final signed token as a string.
|
// Try to create the final signed token as a string.
|
||||||
|
@ -189,7 +189,7 @@ func signin(c *fibre.Context) (err error) {
|
||||||
"iss": "Surreal",
|
"iss": "Surreal",
|
||||||
"iat": time.Now().Unix(),
|
"iat": time.Now().Unix(),
|
||||||
"nbf": time.Now().Unix(),
|
"nbf": time.Now().Unix(),
|
||||||
"exp": time.Now().Add(10 * time.Minute).Unix(),
|
"exp": time.Now().Add(1 * time.Hour).Unix(),
|
||||||
})
|
})
|
||||||
|
|
||||||
// Try to create the final signed token as a string.
|
// Try to create the final signed token as a string.
|
||||||
|
|
Loading…
Reference in a new issue