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
@@ -40,7 +40,7 @@ func ExtractAccountUUID(opts ...account.Option) func(http.Handler) http.Handler
opt := newAccountOptions(opts...)
tokenManager, err := jwt.New(map[string]interface{}{
"secret": opt.JWTSecret,
"expires": int64(60),
"expires": int64(24 * 60 * 60),
})
if err != nil {
opt.Logger.Fatal().Err(err).Msgf("Could not initialize token-manager")