npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@openverifiable/logto-connector-patreon

v1.0.0

Published

Patreon OAuth connector for LogTo

Readme

Patreon OAuth connector for LogTo

ℹ️ Overview

This NPM package is a custom OAuth connector designed for LogTo for use with Patreon. LogTo is an open-source identity management software with out-of-the-box support for many social connectors, and allows custom connectors to be created.

🛠️ Configuration

Once you've added this custom connector to LogTo (see Developer Guide below), you need to configure your connector following these steps:

Step 1: Register Your Client

  1. Sign up on Patreon.com and create a creator account (required for OAuth)
  2. Go to the Clients & API Keys page to register your client application
  3. When registering your client, you'll need to provide:
    • App Name: Your application name
    • Redirect URIs: The callback URL where users will be redirected after authorization (e.g., https://yourapp.com/callback/patreon)
    • Description: Brief description of your application

Step 2: Configure in LogTo

After registering your client on Patreon, you'll receive:

  • Client ID: Used to identify your application
  • Client Secret: Used to authenticate your application (⚠️ Keep this secret!)

Copy these credentials and configure them in your LogTo admin dashboard:

  1. Go to your LogTo Admin Console
  2. Navigate to Connectors → Social
  3. Find and select the Patreon connector
  4. Enter your:
    • Patreon Client ID
    • Patreon Client Secret
    • Redirect URI (must match what you registered on Patreon)
  5. Save and enable the connector

Important Security Notes

  • Never reveal your Client Secret. If compromised, attackers could access your campaign info, patrons' profile info, email addresses, and pledge amounts.
  • Use HTTPS for your redirect URI in production (http://localhost is allowed for development)
  • If you suspect your secret has been compromised, regenerate it immediately on the Patreon Clients page

📋 Scopes

This connector requests the following scopes by default:

  • identity - Access to basic user identity information
  • identity[email] - Access to user's email address

These scopes are appropriate for user authentication and profile access. If you need additional scopes (like pledges-to-me or my-campaign), you would need to modify the connector's scope configuration.

🧑‍💻 Developer Guide

Use with LogTo

To use this connector with LogTo, copy the NPM package contents into a new folder under packages/connectors/connectors-patreon on a copy of the LogTo repository or the LogTo Docker image.

You can build just this library using:

npm install
npm run build

Token Refresh

Access tokens from Patreon expire after the duration specified in the expires_in field. The connector handles the initial OAuth flow, but if you need to refresh tokens, you can use the refresh token provided in the token response with a POST request to:

POST https://www.patreon.com/api/oauth2/token

With parameters:

  • grant_type=refresh_token
  • refresh_token=<the user's refresh_token>
  • client_id=<your client id>
  • client_secret=<your client secret>

📖 API Reference

This connector uses the Patreon OAuth 2.0 flow:

  • Authorization Endpoint: https://www.patreon.com/oauth2/authorize
  • Token Exchange Endpoint: https://www.patreon.com/api/oauth2/token
  • User Identity Endpoint: https://www.patreon.com/api/oauth2/v2/identity

For more information, see the Patreon OAuth documentation.

🔗 Resources