better-auth
Version:
The most comprehensive authentication framework for TypeScript.
36 lines (35 loc) • 916 B
text/typescript
import { GenericOAuthConfig } from "../types.mjs";
import { BaseOAuthProviderOptions } from "../index.mjs";
//#region src/plugins/generic-oauth/providers/hubspot.d.ts
interface HubSpotOptions extends BaseOAuthProviderOptions {
/**
* OAuth scopes to request.
* @default ["oauth"]
*/
scopes?: string[];
}
/**
* HubSpot OAuth provider helper
*
* @example
* ```ts
* import { genericOAuth, hubspot } from "better-auth/plugins/generic-oauth";
*
* export const auth = betterAuth({
* plugins: [
* genericOAuth({
* config: [
* hubspot({
* clientId: process.env.HUBSPOT_CLIENT_ID,
* clientSecret: process.env.HUBSPOT_CLIENT_SECRET,
* scopes: ["oauth", "contacts"],
* }),
* ],
* }),
* ],
* });
* ```
*/
declare function hubspot(options: HubSpotOptions): GenericOAuthConfig;
//#endregion
export { HubSpotOptions, hubspot };