Keep users logged in indefinitely; react

How do I make the token not expire for a very long time? Do I increase the 1000 in let expiresAt = JSON.stringify((authResult.expiresIn * 1000) + new Date().getTime());? Or do I change the “Token Expiration” in the api?