[PR #6138] [MERGED] feat(extend auth providers): hubspot and line providers #6473

Closed
opened 2026-03-13 13:00:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6138
Author: @Paola3stefania
Created: 11/20/2025
Status: Merged
Merged: 11/21/2025
Merged by: @Bekacru

Base: canaryHead: feat/add-line-and-hubspot-providers


📝 Commits (8)

  • 1c76765 feat: hubspot and line providers
  • e9b0c9b Merge branch 'canary' into feat/add-line-and-hubspot-providers
  • 1ac0109 doc: uodated docu on hubspot and line
  • 4a476c1 Merge branch 'canary' into feat/add-line-and-hubspot-providers
  • c0f4802 docs: multi channel support on line
  • 2e4d4a8 Merge branch 'canary' into feat/add-line-and-hubspot-providers
  • 94714ac Merge branch 'canary' into feat/add-line-and-hubspot-providers
  • 13462d8 Merge branch 'canary' into feat/add-line-and-hubspot-providers

📊 Changes

5 files changed (+327 additions, -8 deletions)

View changed files

📝 docs/content/docs/authentication/line.mdx (+55 -0)
📝 docs/content/docs/plugins/generic-oauth.mdx (+27 -7)
packages/better-auth/src/plugins/generic-oauth/providers/hubspot.ts (+106 -0)
📝 packages/better-auth/src/plugins/generic-oauth/providers/index.ts (+3 -1)
packages/better-auth/src/plugins/generic-oauth/providers/line.ts (+136 -0)

📄 Description

Closes Issues #5965 and #5493


Summary by cubic

Added HubSpot and LINE OAuth providers to the generic OAuth plugin to enable sign-in and basic profile retrieval from these platforms.

  • New Features
    • HubSpot provider: default scope "oauth"; retrieves user via access token info endpoint; returns id and email (no profile picture).
    • LINE provider: supports multiple channels via providerId; default scopes "openid", "profile", "email"; uses ID token when available, otherwise falls back to userinfo.
    • Providers exported in the generic-oauth index for easy import (line, hubspot).

Written for commit 13462d8292. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6138 **Author:** [@Paola3stefania](https://github.com/Paola3stefania) **Created:** 11/20/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/add-line-and-hubspot-providers` --- ### 📝 Commits (8) - [`1c76765`](https://github.com/better-auth/better-auth/commit/1c76765b5ee9671a4b9cdd4adf19caf8a5caa95f) feat: hubspot and line providers - [`e9b0c9b`](https://github.com/better-auth/better-auth/commit/e9b0c9b3c5eb0cad2c708ea905e3be500019d3d0) Merge branch 'canary' into feat/add-line-and-hubspot-providers - [`1ac0109`](https://github.com/better-auth/better-auth/commit/1ac0109075a161cf91761e18dfb713629d9d25ae) doc: uodated docu on hubspot and line - [`4a476c1`](https://github.com/better-auth/better-auth/commit/4a476c10f5c632f681098cd35d42504249c21589) Merge branch 'canary' into feat/add-line-and-hubspot-providers - [`c0f4802`](https://github.com/better-auth/better-auth/commit/c0f48020c43a59aa25ccf4dda05899521e872de3) docs: multi channel support on line - [`2e4d4a8`](https://github.com/better-auth/better-auth/commit/2e4d4a8ad400fd7a508159715c244e5cd9823eaa) Merge branch 'canary' into feat/add-line-and-hubspot-providers - [`94714ac`](https://github.com/better-auth/better-auth/commit/94714ac68f2bafae430ff802e239ed7c324bd9dc) Merge branch 'canary' into feat/add-line-and-hubspot-providers - [`13462d8`](https://github.com/better-auth/better-auth/commit/13462d82922e3b10392807bf3ab6b04ac88a42d3) Merge branch 'canary' into feat/add-line-and-hubspot-providers ### 📊 Changes **5 files changed** (+327 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/line.mdx` (+55 -0) 📝 `docs/content/docs/plugins/generic-oauth.mdx` (+27 -7) ➕ `packages/better-auth/src/plugins/generic-oauth/providers/hubspot.ts` (+106 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/providers/index.ts` (+3 -1) ➕ `packages/better-auth/src/plugins/generic-oauth/providers/line.ts` (+136 -0) </details> ### 📄 Description Closes Issues [#5965](https://github.com/better-auth/better-auth/issues/5965) and [#5493](https://github.com/better-auth/better-auth/issues/5493) --------------- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added HubSpot and LINE OAuth providers to the generic OAuth plugin to enable sign-in and basic profile retrieval from these platforms. - **New Features** - HubSpot provider: default scope "oauth"; retrieves user via access token info endpoint; returns id and email (no profile picture). - LINE provider: supports multiple channels via providerId; default scopes "openid", "profile", "email"; uses ID token when available, otherwise falls back to userinfo. - Providers exported in the generic-oauth index for easy import (line, hubspot). <sup>Written for commit 13462d82922e3b10392807bf3ab6b04ac88a42d3. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:00:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#6473