/opt/canhelp/node_modules/better-auth/dist/plugins/generic-oauth/providers
NameSizeModeActions
auth0.d.mts9790644editdlrm
auth0.mjs10840644editdlrm
auth0.mjs.map19460644editdlrm
gumroad.d.mts8640644editdlrm
gumroad.mjs15890644editdlrm
gumroad.mjs.map29580644editdlrm
hubspot.d.mts9550644editdlrm
hubspot.mjs16740644editdlrm
hubspot.mjs.map37940644editdlrm
index.d.mts5140644editdlrm
index.mjs3840644editdlrm
keycloak.d.mts10530644editdlrm
keycloak.mjs11000644editdlrm
keycloak.mjs.map20340644editdlrm
line.d.mts17660644editdlrm
line.mjs25800644editdlrm
line.mjs.map46770644editdlrm
microsoft-entra-id.d.mts10960644editdlrm
microsoft-entra-id.mjs20060644editdlrm
microsoft-entra-id.mjs.map40380644editdlrm
okta.d.mts9900644editdlrm
okta.mjs10560644editdlrm
okta.mjs.map19750644editdlrm
patreon.d.mts8230644editdlrm
patreon.mjs17140644editdlrm
patreon.mjs.map30870644editdlrm
slack.d.mts7990644editdlrm
slack.mjs17190644editdlrm
slack.mjs.map33250644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/plugins/generic-oauth/providers/gumroad.mjs (1589B)
import { betterFetch } from "@better-fetch/fetch"; //#region src/plugins/generic-oauth/providers/gumroad.ts /** * Gumroad OAuth provider helper * * @example * ```ts * import { genericOAuth, gumroad } from "better-auth/plugins/generic-oauth"; * * export const auth = betterAuth({ * plugins: [ * genericOAuth({ * config: [ * gumroad({ * clientId: process.env.GUMROAD_CLIENT_ID, * clientSecret: process.env.GUMROAD_CLIENT_SECRET, * }), * ], * }), * ], * }); * ``` * * @see https://app.gumroad.com/oauth */ function gumroad(options) { const getUserInfo = async (tokens) => { const { data: profile, error } = await betterFetch("https://api.gumroad.com/v2/user", { method: "GET", headers: { Authorization: `Bearer ${tokens.accessToken}` } }); if (error || !profile?.success || !profile.user) return null; return { id: profile.user.user_id, name: profile.user.name, email: profile.user.email, image: profile.user.profile_url, emailVerified: false }; }; return { providerId: "gumroad", authorizationUrl: "https://gumroad.com/oauth/authorize", tokenUrl: "https://api.gumroad.com/oauth/token", clientId: options.clientId, clientSecret: options.clientSecret, scopes: options.scopes ?? ["view_profile"], redirectURI: options.redirectURI, pkce: options.pkce, disableImplicitSignUp: options.disableImplicitSignUp, disableSignUp: options.disableSignUp, overrideUserInfo: options.overrideUserInfo, getUserInfo }; } //#endregion export { gumroad }; //# sourceMappingURL=gumroad.mjs.map