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

PropertyWhat it controls
Bridge EndpointThe same HTTPS PHP URL registered as the OAuth callback.
Public App IDThe public identifier from appId in your bridge configuration.
Campaign IDThe creator campaign the bridge verifies.
Join Page URLThe HTTPS destination for Open Join Page.
Membership RequiredActive Patron, Any Current Membership, Free Membership, or Currently Entitled Tier.
Allowed Tier IDsComma-separated stable IDs. Required for Currently Entitled Tier. An empty list leaves the other membership policies unrestricted by tier.
Tier MatchAny Selected Tier accepts one match. All Selected Tiers requires every ID.
Free Membership Tier IDsConfirmed free tier IDs. Leave blank if you cannot verify a free tier.
Allow Gifted MembershipsOn by default. Turning it off requires Patreon to confirm the membership is not gifted.
Allow Free TrialsOn by default. Turning it off requires Patreon to confirm the membership is not a trial.
Remember SessionOn 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 MappingChoose 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.

VariableValue
patreon_logged_inWhether the player has authenticated.
patreon_session_statusCurrent sign-in state.
patreon_activeWhether Patreon reports an active patron.
patreon_access_allowedWhether a fresh result passes your access policy.
patreon_access_reasonReason for the access decision.
patreon_display_nameDisplay name when Patreon supplies one.
patreon_user_idThe authenticated Patreon user ID.
patreon_tier_idFirst entitled tier ID, when present.
patreon_tier_nameDisplay name of the first tier, when present.
patreon_tier_listAll currently entitled tiers as JSON.
patreon_membership_statusPatreon's raw membership status.
patreon_membership_categoryCategory derived from the verified campaign membership.
patreon_is_memberWhether the player is a member of the configured campaign.
patreon_is_giftedGifted membership indicator when known.
patreon_is_free_trialFree trial indicator when known.
patreon_amount_centsReported entitlement amount in minor units, which can reflect the patron's currency. Use tier IDs for access.
patreon_freshWhether membership verification is still fresh.
patreon_error_codeCode for the latest sign-in or verification problem.
patreon_last_errorPlayer-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.
⚡ Sale Live SALE NOW ON - TIME LIMITED OFFER - GET NOW! Gamer 75% Off Developer 35% Off Max 50% Off One-time payment · Lifetime access Get Discount
⚡ Sale Live Lifetime access reduced
Up to 75% off GLCV4 lifetime
Gamer 75% Dev 35% Max 50%
Get Discount