[PR #1436] [CLOSED] feat: allow inviting users to the app #29406

Closed
opened 2026-04-17 20:44:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1436
Author: @jslno
Created: 2/14/2025
Status: Closed

Base: mainHead: feat/app-invite


📝 Commits (10+)

  • cff04f8 fix: typo
  • 3b21721 feat: allow inviting users to the app
  • 5603b35 feat: allow disabling sending invites based on the issuer
  • 0cf73b0 refactor: specify default table name
  • cbdc636 fix: export the plugin
  • 66eaf8a docs: add app-invite plugin
  • bde3c18 fix: linting
  • c13954c fix: linting
  • 3f55934 feat: user independant invitation links
  • 194e8ab fix: linting

📊 Changes

13 files changed (+1876 additions, -2 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+23 -0)
docs/content/docs/plugins/app-invite.mdx (+259 -0)
📝 packages/better-auth/build.config.ts (+1 -0)
📝 packages/better-auth/package.json (+23 -0)
📝 packages/better-auth/src/client/plugins/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/additional-fields/additional-fields.test.ts (+2 -2)
packages/better-auth/src/plugins/app-invite/adapter.ts (+122 -0)
packages/better-auth/src/plugins/app-invite/app-invite.test.ts (+380 -0)
packages/better-auth/src/plugins/app-invite/client.ts (+32 -0)
packages/better-auth/src/plugins/app-invite/error-codes.ts (+15 -0)
packages/better-auth/src/plugins/app-invite/index.ts (+995 -0)
packages/better-auth/src/plugins/app-invite/schema.ts (+22 -0)
📝 packages/better-auth/src/plugins/index.ts (+1 -0)

📄 Description

This PR allows inviting users to the application without them having to sign up first. It allows you to either create personal or public invitations. Personal invitations are restricted to a specific email address while public invitations allow multiple users to sign up via a single invitation.

Important

Until Better-Auth officially agrees to implement this, it'll be available at https://better-auth-extended.jsolano.de/docs/plugins/app-invite

Issues should be opened here: https://github.com/better-auth-extended/better-auth-extended/issues

Docs

image

Tests

image

  • Implementation
  • Tests
  • Documentation

closes #1546 #4223 #5200


🔄 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/1436 **Author:** [@jslno](https://github.com/jslno) **Created:** 2/14/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/app-invite` --- ### 📝 Commits (10+) - [`cff04f8`](https://github.com/better-auth/better-auth/commit/cff04f810b0443b37d85895a538103fc0bb3239d) fix: typo - [`3b21721`](https://github.com/better-auth/better-auth/commit/3b2172147b9f8e91a6342117bb050884131b5f72) feat: allow inviting users to the app - [`5603b35`](https://github.com/better-auth/better-auth/commit/5603b35a638f6e92b337fdfc2d8c6c0cb6fc97b0) feat: allow disabling sending invites based on the issuer - [`0cf73b0`](https://github.com/better-auth/better-auth/commit/0cf73b0dff2cf4b6d54fb0185c5a41051e89503a) refactor: specify default table name - [`cbdc636`](https://github.com/better-auth/better-auth/commit/cbdc63663d429530fc8d06481d33b11240589a0b) fix: export the plugin - [`66eaf8a`](https://github.com/better-auth/better-auth/commit/66eaf8a35014f210203a6c129f9d369ce01a154a) docs: add app-invite plugin - [`bde3c18`](https://github.com/better-auth/better-auth/commit/bde3c18d51f9c2d45f5f267986d720b7ebe6c3ae) fix: linting - [`c13954c`](https://github.com/better-auth/better-auth/commit/c13954ca545b4cc6f9fd81b86c2f996f1d838814) fix: linting - [`3f55934`](https://github.com/better-auth/better-auth/commit/3f55934aec807778dce57570390e0d1ead721572) feat: user independant invitation links - [`194e8ab`](https://github.com/better-auth/better-auth/commit/194e8ab53d331d6f6646c84d237c4f84e75e8657) fix: linting ### 📊 Changes **13 files changed** (+1876 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+23 -0) ➕ `docs/content/docs/plugins/app-invite.mdx` (+259 -0) 📝 `packages/better-auth/build.config.ts` (+1 -0) 📝 `packages/better-auth/package.json` (+23 -0) 📝 `packages/better-auth/src/client/plugins/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/additional-fields/additional-fields.test.ts` (+2 -2) ➕ `packages/better-auth/src/plugins/app-invite/adapter.ts` (+122 -0) ➕ `packages/better-auth/src/plugins/app-invite/app-invite.test.ts` (+380 -0) ➕ `packages/better-auth/src/plugins/app-invite/client.ts` (+32 -0) ➕ `packages/better-auth/src/plugins/app-invite/error-codes.ts` (+15 -0) ➕ `packages/better-auth/src/plugins/app-invite/index.ts` (+995 -0) ➕ `packages/better-auth/src/plugins/app-invite/schema.ts` (+22 -0) 📝 `packages/better-auth/src/plugins/index.ts` (+1 -0) </details> ### 📄 Description This PR allows inviting users to the application without them having to sign up first. It allows you to either create personal or public invitations. Personal invitations are restricted to a specific email address while public invitations allow multiple users to sign up via a single invitation. > [!IMPORTANT] > Until Better-Auth officially agrees to implement this, it'll be available at https://better-auth-extended.jsolano.de/docs/plugins/app-invite > > Issues should be opened here: https://github.com/better-auth-extended/better-auth-extended/issues ## Docs ![image](https://github.com/user-attachments/assets/a3a8ce6f-1c97-4a98-a85a-3de3c3537cf0) ## Tests ![image](https://github.com/user-attachments/assets/65f6acda-6648-4be3-a963-6f347381ce51) * [X] Implementation * [X] Tests * [X] Documentation closes #1546 #4223 #5200 --- <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-17 20:44:43 -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#29406