Repository navigation
Releases
Releases · runreal/better-auth
v1.2.6-fork.1
🚀 Features
- Add Kick social provider - by @deestt in https://github.com/runreal/better-auth/issues/1702 (44078)
- Add onEmailVerification callback - by @Bekacru (3a4bb)
- Disabled paths - by @Bekacru in https://github.com/runreal/better-auth/issues/1918 (cf4bd)
- Refresh token endpoint - by @Kinfe123 in https://github.com/runreal/better-auth/issues/1779 (06193)
- MapProfileToUser in vk social-provider - by @MagicFun1241 in https://github.com/runreal/better-auth/issues/1944 (8d357)
- One-time token plugin - by @Bekacru in https://github.com/runreal/better-auth/issues/2151 (155d9)
- account:
- Add option to allow unlinking all accounts - by @Bekacru in https://github.com/runreal/better-auth/issues/1818 (e157e)
- admin:
- Custom banned user error message - by @Bekacru in https://github.com/runreal/better-auth/issues/1692 (2ca71)
- Allow creating users without admin session on server api - by @Bekacru (f2520)
- Add support for passing multiple roles as array - by @Netrifier in https://github.com/runreal/better-auth/issues/1907 (df727)
- generic-oauth:
- Allow basic auth - by @beermonsterdota in https://github.com/runreal/better-auth/issues/1808 (95cb5)
- oidc:
- Allow passing additional user claims - by @Bekacru in https://github.com/runreal/better-auth/issues/1933 (093f9)
- organization:
- Allow passing teamId in addMember - by @Netrifier in https://github.com/runreal/better-auth/issues/1794 (cc053)
- phone-number:
- provider:
- Twitter email support - by @Kinfe123 in https://github.com/runreal/better-auth/issues/2176 (48efd)
- stripe:
- Restore subscription - by @JNLei in https://github.com/runreal/better-auth/issues/1705 (82633)
🐞 Bug Fixes
- Allow plus signs in relative callback URLs - by @javawizard in https://github.com/runreal/better-auth/issues/1823 (a448c)
- Multiple issues with openapi types and references - by @Ehesp in https://github.com/runreal/better-auth/issues/1811 (6e1a4)
- Typescript cannot be named without reference error - by @Bekacru in https://github.com/runreal/better-auth/issues/1827 (16e71)
- Get session cookie helper should use better url retrieval and read config overrides - by @Bekacru in https://github.com/runreal/better-auth/issues/1828 (0b821)
- Get session cookie should check for both secure and non secure cookies - by @Bekacru (67a95)
- Access of undefined in runtime that does have great support of instanceof - by @jamesone in https://github.com/runreal/better-auth/issues/1838 (62f3e)
- Use instead of relying on instanceOf for incoming request type checks - by @Bekacru (6c88e)
- Double matcher on username plugin - by @Kinfe123 in https://github.com/runreal/better-auth/issues/1915 (f2187)
- Trigger session refetch on verify email - by @Bekacru in https://github.com/runreal/better-auth/issues/1932 (fb312)
- Support numeric user IDs - by @benkingcode in https://github.com/runreal/better-auth/issues/1936 (6cd74)
- Import orders and alias to avoid conflict in ac code examples - by @AmagiDDmxh (e0b34)
- UnlinkAccount should support optional accountId - by @Bekacru in https://github.com/runreal/better-auth/issues/1952 (6b47e)
- Respect disable signup on social providers - by @Bekacru in https://github.com/runreal/better-auth/issues/1981 (d7419)
- Only delete verification token on password reset after succesful db query - by @moshetanzer in https://github.com/runreal/better-auth/issues/1995 (ba2e5)
- Additional fields type inference breaking on default value - by @Bekacru (4afcb)
- Fallback to checking main db on session retrieval when storeSessionInDatabase is enabled - by @Bekacru (f0e8f)
- Export oAuth types - by @hyoban in https://github.com/runreal/better-auth/issues/2028 (0b6a2)
- Og image compat - by @Kinfe123 (e2d6b)
- Og image compatibility on multiple link previews - by @Kinfe123 (a2174)
- Tooltip arrow - by @Kinfe123 (1c605)
- Tooltip arrow pointer - by @Kinfe123 (e62ea)
- Forget password flow failing because of id conversion - by @sosweetham in https://github.com/runreal/better-auth/issues/2083 (75faf)
- Dep issue - by @Kinfe123 (4ff81)
- Deployment compat issue - by @Kinfe123 (3b6d8)
- Verify github email when profile has an email - by @erquhart in https://github.com/runreal/better-auth/issues/2078 (fcb43)
- Docs syntax spacing - by @Kinfe123 (11166)
- GenericOAuth default redirectURI for account linking - by @dbworku in https://github.com/runreal/better-auth/issues/2147 (d2453)
- Missing disableRefresh type in server side getSession - by @Bekacru in https://github.com/runreal/better-auth/issues/2141 (fb431)
- Redirect to defaultErrorURL if errorURL doens't exist - by @Bekacru (6a089)
- Plugin middleware docs - by @Kinfe123 (bfdb2)
- Improve header value retrieval for IP address extraction - by @ozgurozalp in https://github.com/runreal/better-auth/issues/1865 (cbbd6)
- admin:
- Remove undefined type from list-users openapi documentation - by @Ehesp in https://github.com/runreal/better-auth/issues/1845 (a2748)
- Pass where clause to adapter.count to fix total value on listUser - by @Netrifier in https://github.com/runreal/better-auth/issues/2109 (38128)
- DefaultRoles, adminRoles + others not applying user config - by @ping-maxwell in https://github.com/runreal/better-auth/issues/2128 (4dcb9)
- api-key:
- Delete keys on client should use POST method instead - by @ping-maxwell in https://github.com/runreal/better-auth/issues/1858 (cd828)
- Return value of permissions should be object, not string - by @ping-maxwell in https://github.com/runreal/better-auth/issues/1757 (f633d)
- cli...
v1.2.4-fork.2
v1.2.4-fork.1
🚀 Features
- Cleanup expired verification data on fetch - by @Bekacru in https://github.com/runreal/better-auth/issues/1110 (1a492)
- Disable default scopes and allow scopes to be passed on request - by @Bekacru in https://github.com/runreal/better-auth/issues/1240 (4ba72)
- Move to better call version 1 - by @Bekacru in https://github.com/runreal/better-auth/issues/1402 (46dfc)
- Captcha Plugin with multiple providers - by @0scrm in https://github.com/runreal/better-auth/issues/957 (363ca)
- Add VK ID social provider - by @nukhtarov and @Bekacru in https://github.com/runreal/better-auth/issues/1013 (700d3)
- Implement JWT token generation and retrieval with encryption support - by @Bekacru (1a482)
- Check organization slug - by @Bekacru in https://github.com/runreal/better-auth/issues/1201 (51e2b)
- Support stroring dispaly username to store un-normalized username - by @Bekacru in https://github.com/runreal/better-auth/issues/1204 (047d6)
- Add Roblox social provider - by @D3visionNL and @Bekacru in https://github.com/runreal/better-auth/issues/1249 (e6470)
- Add total users table/collection count to admin plugin list-users endpoint - by @D3visionNL and Kinfe123 in https://github.com/runreal/better-auth/issues/1258 (d28e4)
- Add context to database hooks - by @kzlar in https://github.com/runreal/better-auth/issues/1180 (63fbd)
- Base64 conversion without Buffer - by @BlankParticle in https://github.com/runreal/better-auth/issues/1523 (27401)
- Add cloudflare worker basic tests - by @BlankParticle in https://github.com/runreal/better-auth/issues/1524 (d7f66)
- Add access control to admin plugin - by @jslno in https://github.com/runreal/better-auth/issues/1424 (61212)
- API Key plugin - by @ping-maxwell in https://github.com/runreal/better-auth/issues/1515 (ec9ed)
- TikTok social provider - by @DewinU and @Bekacru in https://github.com/runreal/better-auth/issues/397 (7fffd)
initBetter Auth CLI command - by @ping-maxwell and @Bekacru in https://github.com/runreal/better-auth/issues/1427 (c66fd)- Add disabling email and password signup config - by @jslno in https://github.com/runreal/better-auth/issues/1428 (6ae53)
- Team support for organization - by @Bekacru and Kinfe123 in https://github.com/runreal/better-auth/issues/1425 (695f2)
- Passkey plugin with client-side
authenticatorAttachmentand globalauthenticatorSelectionconfiguration - by @benbehringer, @acusti and @Bekacru in https://github.com/runreal/better-auth/issues/1318 (d7496) - Add
errorURLfor custom error pages - by @Bekacru in https://github.com/runreal/better-auth/issues/1593 (8ec35) - Stripe plugin to handle subscriptions and customers - by @Bekacru in https://github.com/runreal/better-auth/issues/1588 (4f560)
- Disable Implicit Signup - by @kzlar and @Bekacru in https://github.com/runreal/better-auth/issues/1179 (44d6d)
- Improve Stripe webhook error handling and add trial lifecycle hooks - by @Bekacru (44018)
- Support promise return trusted origins - by @Bekacru (f743c)
- Support reverse proxied base URLs - by @Bekacru in https://github.com/runreal/better-auth/issues/1788 (36a7d)
- account:
- Multiple account with the same provider - by @Kinfe123 in https://github.com/runreal/better-auth/issues/1803 (4ba4a)
- admin:
- cli:
- Add support for auth.server.ts - by @ardasoyturk in https://github.com/runreal/better-auth/issues/1456 (b9ccf)
- client:
- Add
basePathoption oncreateAuthClient- by @Bekacru in https://github.com/runreal/better-auth/issues/1571 (1a3af)
- Add
- email-otp:
- Add option to set a function to generate OTPs - by @CordlessWool in https://github.com/runreal/better-auth/issues/1472 (8ba7a)
- mongodb-adapter:
- Support custom ID generation in MongoDB adapter - by @Bekacru in https://github.com/runreal/better-auth/issues/1444 (abd58)
- oidc:
- Allow header auth for token endpoint - by @t3duk in https://github.com/runreal/better-auth/issues/1484 (15f97)
- oidc-provider:
- Implement OIDC rfc7591 compliant /register endpoint - by @remorses in https://github.com/runreal/better-auth/issues/1732 (2a495)
- one-tap:
- Improve Google One Tap integration with JWT verification and improved prompt handling - by @Bekacru in https://github.com/runreal/better-auth/issues/1452 (8a08a)
- Implement account linking - by @Bekacru (0a47a)
- organization:
- Support multiple roles - by @Bekacru in https://github.com/runreal/better-auth/issues/1037 (1971f)
- Add option to keep current active organization when creating a new one - by @Bekacru (a5d26)
- Add team management permissions and documentation - by @Bekacru (12baa)
- Add organization creation hooks and improve type safety - by @Bekacru (6131a)
- phone-number:
- Add reset password functionality with phone number - by @Bekacru in https://github.com/runreal/better-auth/issues/1202 (3766b)
- social-providers:
- sso:
- Sign in using the providerId - by @kamilkisiela in https://github.com/runreal/better-auth/issues/1533 (6c67e)
- two-factor:
- Activate two factor with email OTP to avoid Insecure skipVerificationOnEnable - by @GregorWedlich in https://github.com/runreal/better-auth/issues/1445 (28f18)
- username:
- Add default validation and options for validating username - by @Bekacru in https://github.com/runreal/better-auth/issues/1345 (c4f20)
🐞 Bug Fixes
- Update @better-fetch/fetch to version 1.1.14-beta.2 and clean up client options - by @Bekacru (29f2e)
- SetIssuer baseURL - by @runreal-warman (a3d5b)
- Add email verification for in place email updates - by @Bekacru (3ca6c)
- Add callback URL to update email verification link - by @Bekacru (9653f)
- Oauth failing when using drizzle adapter - by...