Set reva JWT token expiration time to 24 hours by default

This commit is contained in:
Ishank Arora
2021-09-23 09:10:40 +02:00
parent 255a6a27cf
commit 3e98b8df72
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ func (o Ocs) DeleteUser(w http.ResponseWriter, r *http.Request) {
func (o Ocs) mintTokenForUser(ctx context.Context, account *accounts.Account) (string, error) {
tm, _ := jwt.New(map[string]interface{}{
"secret": o.config.TokenManager.JWTSecret,
"expires": int64(60),
"expires": int64(24 * 60 * 60),
})
u := &revauser.User{