I have a very custom implementation where I make use of the Patreon for WordPress plugin’s functions to handle users of my application who log in with Patreon.
Right now, I’ve got everything working: a user can sign up with Patreon, it creates an account on the website, and I’ve tied in the plugin’s functions to activate premium features if they’re an active patron.
However, the only snag: if they already made an account on the website (using my built-in registration unrelated to Patreon), Patreon sends them to the login page and tells them to log in, presumably because it finds the email address they’re trying to log in with Patreon in WordPress as an existing account.
Which is all fine and good, but when they log in normally (using WordPress), the functions that check if the user is a Patreon user don’t work after they’re logged in. I’m guessing because Patreon hasn’t saved any access token for the pre-existing user, so it doesn’t see the user as linked to Patreon.
Has anyone encountered this? What was your approach?