# Patrons have to authorize every time

**URL:** <https://www.patreondevelopers.com/t/patrons-have-to-authorize-every-time/1650>\
**Category:** Wordpress Plugin\
**Created:** [March 15, 2019, 2:41am UTC](https://www.patreondevelopers.com/t/patrons-have-to-authorize-every-time/1650 "2019-03-15T02:41:09Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Bennycopter](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/bennycopter/32/2020_2.png) [@Bennycopter](https://www.patreondevelopers.com/u/Bennycopter)\
**Post date:** [May 3, 2022, 1:26pm UTC](https://www.patreondevelopers.com/t/patrons-have-to-authorize-every-time/1650/7 "2022-05-03T13:26:48Z")

</div>

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.

```auto
<?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);
}

```

---

_[View the full topic](https://www.patreondevelopers.com/t/patrons-have-to-authorize-every-time/1650)._
