1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

increase token expiry

This commit is contained in:
sauls8t 2018-02-08 11:40:04 +00:00
parent 9d82682797
commit 1ef8807b2d

View file

@ -27,7 +27,7 @@ func GenerateJWT(rt *env.Runtime, user, org, domain string) string {
token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{
"iss": "Documize",
"sub": "webapp",
"exp": time.Now().Add(time.Hour * 168).Unix(),
"exp": time.Now().Add(time.Hour * 8760).Unix(),
"user": user,
"org": org,
"domain": domain,