Patreon Plugin Reference
Use this reference when connecting a GLC Patreon object to your self-hosted bridge. For installation and a working example, see the Patreon Plugin setup guide.
Object properties
| Property | What it controls |
|---|---|
| Bridge Endpoint | The same HTTPS PHP URL registered as the OAuth callback. |
| Public App ID | The public identifier from appId in your bridge configuration. |
| Campaign ID | The creator campaign the bridge verifies. |
| Join Page URL | The HTTPS destination for Open Join Page. |
| Membership Required | Active Patron, Any Current Membership, Free Membership, or Currently Entitled Tier. |
| Allowed Tier IDs | Comma-separated stable IDs. Required for Currently Entitled Tier. An empty list leaves the other membership policies unrestricted by tier. |
| Tier Match | Any Selected Tier accepts one match. All Selected Tiers requires every ID. |
| Free Membership Tier IDs | Confirmed free tier IDs. Leave blank if you cannot verify a free tier. |
| Allow Gifted Memberships | On by default. Turning it off requires Patreon to confirm the membership is not gifted. |
| Allow Free Trials | On by default. Turning it off requires Patreon to confirm the membership is not a trial. |
| Remember Session | On by default. Makes the bridge session available to Restore Session on the next launch. |
| Membership Check Interval (Minutes) | One to 15 minutes. Defaults to four. A failed check cannot extend a previous result's freshness. |
| Variable Mapping | Choose the GLC variable name for each value in the table below. |
Use current entitlement IDs for tier access. Patreon may report former, declined, free, gifted, trial, or paid-through membership differently from a currently active paid patron. Verify the campaign and select the policy that matches the experience you want. Use patreon_access_allowed for the policy result and patreon_fresh for its freshness.
Actions and conditions
- Login opens the player's external browser and starts a five-minute background sign-in. Repeated clicks keep one attempt pending.
- Cancel Login cancels a pending sign-in. Closing the browser leaves the attempt pending until cancellation or timeout.
- Logout clears the launcher session and ends its bridge session. Players stay signed in to their Patreon website account.
- Restore Session verifies a remembered session. Add it to Page Load.
- Refresh Membership rechecks current membership. Repeated checks can reuse a short-lived bridge result.
- Open Join Page opens the configured Patreon URL.
- If Active Patron checks the verified active-patron status. If In Tier checks a tier ID against all currently entitled tiers. If Access Allowed checks the configured policy. Enable Halt if Negative before gated actions.
Events
- Login Start, Login Success, Login Failed, and Login Cancelled report the sign-in lifecycle. An expired attempt fires Login Failed.
- Membership Ready reports a fresh snapshot. Membership Changed reports a change detected during a later verification. Verification Failed reports an unavailable or failed check.
- Access Allowed and Access Denied report the verified policy decision. Access Revoked reports the end of previously granted access after a new check or expiry.
- Session Restored reports a verified remembered session. Logout reports the cleared local session.
Default variables
Use the existing GLC variable syntax in labels and actions, for example %-%patreon_display_name%-%. Membership and gift or trial fields can be blank when unavailable. Use the policy result to decide access.
| Variable | Value |
|---|---|
patreon_logged_in | Whether the player has authenticated. |
patreon_session_status | Current sign-in state. |
patreon_active | Whether Patreon reports an active patron. |
patreon_access_allowed | Whether a fresh result passes your access policy. |
patreon_access_reason | Reason for the access decision. |
patreon_display_name | Display name when Patreon supplies one. |
patreon_user_id | The authenticated Patreon user ID. |
patreon_tier_id | First entitled tier ID, when present. |
patreon_tier_name | Display name of the first tier, when present. |
patreon_tier_list | All currently entitled tiers as JSON. |
patreon_membership_status | Patreon's raw membership status. |
patreon_membership_category | Category derived from the verified campaign membership. |
patreon_is_member | Whether the player is a member of the configured campaign. |
patreon_is_gifted | Gifted membership indicator when known. |
patreon_is_free_trial | Free trial indicator when known. |
patreon_amount_cents | Reported entitlement amount in minor units, which can reflect the patron's currency. Use tier IDs for access. |
patreon_fresh | Whether membership verification is still fresh. |
patreon_error_code | Code for the latest sign-in or verification problem. |
patreon_last_error | Player-facing description of that problem. |
Troubleshooting
- Bridge setup error: check PHP 8.3+, cURL, PDO SQLite and OpenSSL, the private directory path, storage permissions, and filesystem restrictions.
- OAuth callback error: compare the exact HTTPS URL in Patreon, GLC, and
config.php. Check that the client ID and secret belong to the same API v2 registration. - Sign-in works but access is denied: check the campaign ID, current entitlement IDs, Any/All matching, and the gift and trial settings. Read
patreon_access_reason. - Temporary service or rate-limit error: let the next scheduled check run and use the suggested retry time if provided. Existing access ends when the confirmed result becomes stale.
- Launcher access and file access differ: use GLC to gate the interface and actions. Require authorization on the server that hosts the restricted files.