Patrons have to authorize every time

I had this same issue. My solution was to add this plugin which simply re-sets the auth cookies after the Patreon plugin is done with auth’ing. This basically makes it act as if the user hit the “Remember Me” checkbox during login.

<?php
/**
 * Plugin Name: Patreon - Stay Logged In Always (Patreon users only)
 * Description: This makes it so that the user will always stay logged in, as if they hit "Remember Me".  This is a workaround for the Patreon plugin.
 * Version: 1.0.0
 * Author: Bennycopter
 */

namespace Stay_Logged_In_Always_To_Patreon;
if (!defined('ABSPATH')) exit;

add_action("patreon_do_action_after_user_logged_in_via_patreon", "Stay_Logged_In_Always_To_Patreon\\patreon_post_login", 99, 1);
add_action("patreon_do_action_after_new_user_created_from_patreon_logged_in", "Stay_Logged_In_Always_To_Patreon\\patreon_post_login", 99, 1);
add_action("patreon_do_action_after_existing_user_from_patreon_logged_in", "Stay_Logged_In_Always_To_Patreon\\patreon_post_login", 99, 1);

function patreon_post_login($filter_args) {
    // 2nd parameter specifies "remember me"
    wp_set_auth_cookie($filter_args["user"]->ID, true);
}
2 Likes