add_filter('auth_cookie_expiration', function (int $length): int { return 31536000; });

It looks like nothing was found at this location. Maybe try one of the links below or a search?