24 hr token
This commit is contained in:
parent
5cf73a19fb
commit
8e9d6380e7
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func claimsFunc(email string) (map[string]interface{}, error) {
|
|||
"sub": user.ID,
|
||||
"role": user.Role,
|
||||
"iat": currentTime.Unix(),
|
||||
"exp": currentTime.Add(time.Minute * 60).Unix(),
|
||||
"exp": currentTime.Add(time.Minute * 60 * 24).Unix(),
|
||||
"ref": "",
|
||||
}, nil
|
||||
}
|
||||
|
|
Reference in a new issue