Set reva JWT token expiration time to 24 hours by default
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user