[PR #4084] [MERGED] feat(social): add Line provider #13424

Closed
opened 2026-04-13 08:55:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4084
Author: @linyiru
Created: 8/19/2025
Status: Merged
Merged: 8/22/2025
Merged by: @himself65

Base: canaryHead: feat/line-login-provider


📝 Commits (6)

  • 1acaae9 feat(social-providers): add LINE provider with OAuth2 code flow, ID token verification, and userinfo fallback per LINE Login v2.1
  • 66e41f6 docs: add LINE auth docs and sidebar entry; update icon to official LINE mark
  • 5ba7470 chore(line): update sidebar icon and provider implementation adjustments
  • f3552e6 Update docs/content/docs/authentication/line.mdx
  • 775f8ed Merge branch 'canary' into feat/line-login-provider
  • 0ed2179 Merge branch 'canary' into feat/line-login-provider

📊 Changes

4 files changed (+265 additions, -0 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+17 -0)
docs/content/docs/authentication/line.mdx (+78 -0)
📝 packages/better-auth/src/social-providers/index.ts (+3 -0)
packages/better-auth/src/social-providers/line.ts (+167 -0)

📄 Description

This PR adds support for LINE as a social provider.

LINE is one of the most widely used communication platforms in Japan and across parts of Southeast Asia including Taiwan, Thailand and Indonesia, with over 200 million monthly active users.

Its login service ("LINE Login") is a standard authentication option for many regional services, especially in e-commerce, fintech, and digital content platforms.

I hope this PR makes Better Auth more accessible for developers targeting Japan and other LINE-dominant markets.

image

Summary by cubic

Adds LINE as a social login provider. Supports OAuth 2.1 code flow and optional ID token sign-in, with new docs and a sidebar link.

  • New Features
    • New LINE provider with authorization, token, and userinfo endpoints; supports createAuthorizationURL, code exchange, and token refresh.
    • ID token verification via LINE’s verify endpoint; checks audience and optional nonce; can be disabled or overridden.
    • User profile pulled from ID token or userinfo; maps id/name/email/image; default scopes: openid, profile, email; scopes and redirect URI can be customized.
    • Provider exported in social-providers index; added setup docs and a sidebar entry with the LINE icon.

🔄 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/4084 **Author:** [@linyiru](https://github.com/linyiru) **Created:** 8/19/2025 **Status:** ✅ Merged **Merged:** 8/22/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/line-login-provider` --- ### 📝 Commits (6) - [`1acaae9`](https://github.com/better-auth/better-auth/commit/1acaae920fbb17af8d94d820793db62c6bae944e) feat(social-providers): add LINE provider with OAuth2 code flow, ID token verification, and userinfo fallback per LINE Login v2.1 - [`66e41f6`](https://github.com/better-auth/better-auth/commit/66e41f6d82ba5adb0b76107396dbe858dc955fad) docs: add LINE auth docs and sidebar entry; update icon to official LINE mark - [`5ba7470`](https://github.com/better-auth/better-auth/commit/5ba747075a6c685da9a1c416be4cffa5b3e49d21) chore(line): update sidebar icon and provider implementation adjustments - [`f3552e6`](https://github.com/better-auth/better-auth/commit/f3552e6d1ea9fdd8236ef81989615cf5d9fa1454) Update docs/content/docs/authentication/line.mdx - [`775f8ed`](https://github.com/better-auth/better-auth/commit/775f8ede4ca1bd6e5d858875997a8dd603dfb0fd) Merge branch 'canary' into feat/line-login-provider - [`0ed2179`](https://github.com/better-auth/better-auth/commit/0ed21791c4813790294f8d5cbb49051842167e96) Merge branch 'canary' into feat/line-login-provider ### 📊 Changes **4 files changed** (+265 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+17 -0) ➕ `docs/content/docs/authentication/line.mdx` (+78 -0) 📝 `packages/better-auth/src/social-providers/index.ts` (+3 -0) ➕ `packages/better-auth/src/social-providers/line.ts` (+167 -0) </details> ### 📄 Description This PR adds support for [LINE](https://developers.line.biz/en/) as a social provider. LINE is one of the most widely used communication platforms in Japan and across parts of Southeast Asia including Taiwan, Thailand and Indonesia, with over 200 million monthly active users. Its login service ("LINE Login") is a standard authentication option for many regional services, especially in e-commerce, fintech, and digital content platforms. I hope this PR makes Better Auth more accessible for developers targeting Japan and other LINE-dominant markets. <img width="546" height="497" alt="image" src="https://github.com/user-attachments/assets/99dd6c52-b00c-4d79-a2a4-8e4d4b31a9d6" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds LINE as a social login provider. Supports OAuth 2.1 code flow and optional ID token sign-in, with new docs and a sidebar link. - **New Features** - New LINE provider with authorization, token, and userinfo endpoints; supports createAuthorizationURL, code exchange, and token refresh. - ID token verification via LINE’s verify endpoint; checks audience and optional nonce; can be disabled or overridden. - User profile pulled from ID token or userinfo; maps id/name/email/image; default scopes: openid, profile, email; scopes and redirect URI can be customized. - Provider exported in social-providers index; added setup docs and a sidebar entry with the LINE icon. <!-- 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-04-13 08:55:50 -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#13424