mirror of
https://github.com/minio/minio.git
synced 2025-11-13 15:21:36 -05:00
web: fix jwt token expiry set to one day by default. (#2819)
Fixes #2818
This commit is contained in:
@@ -59,7 +59,7 @@ type RPCLoginReply struct {
|
||||
|
||||
// Validates if incoming token is valid.
|
||||
func isRPCTokenValid(tokenStr string) bool {
|
||||
jwt, err := newJWT(defaultTokenExpiry) // Expiry set to 100yrs.
|
||||
jwt, err := newJWT(defaultInterNodeJWTExpiry)
|
||||
if err != nil {
|
||||
errorIf(err, "Unable to initialize JWT")
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user