Repository navigation
v1.2.6-fork.1
Pre-release
Pre-release
·
1688 commits
to main
since this release
🚀 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:
- Invalid prisma init config - by @pnodet in https://github.com/runreal/better-auth/issues/1964 (43ab2)
- custom-session:
- Custom session failing to set cookies - by @Bekacru in https://github.com/runreal/better-auth/issues/2124 (61dc4)
- expo:
- Better fetch type mismatch causing type error on expo client plugin - by @Bekacru in https://github.com/runreal/better-auth/issues/1825 (54bdb)
- generic-oauth:
- Added basic auth param in oAuth2Callback - by @beermonsterdota in https://github.com/runreal/better-auth/issues/1810 (765dd)
- Should check for email after mapProfileToUser - by @Bekacru (0b5c1)
- oauth:
- Support passing prompt, access_type, type_hint and additional params when constructing authorization URL - by @waleedlatif1 in https://github.com/runreal/better-auth/issues/1888 (3d36a)
- Encode clientId and clientSecret in authorization header - by @xinyao27 in https://github.com/runreal/better-auth/issues/2120 (ffa24)
- oidc-plugin:
- Temporary workaround to use jwks to sign - by @runreal-warman (f86ef)
- Temporary workaround to use jwks to sign - by @runreal-warman (57a34)
- oidc-provider:
- open-api:
- Hide disabled paths - by @CrutchTheClutch in https://github.com/runreal/better-auth/issues/2144 (f257f)
- organization:
- Multiple role array not referenced properly - by @Netrifier in https://github.com/runreal/better-auth/issues/1792 (3af31)
- Trigger session refetch on set-active - by @Bekacru (d7890)
- Client infer for Member is using incorrect type - by @ping-maxwell in https://github.com/runreal/better-auth/issues/1857 (cc688)
- Membership limit incorrect usage breaks list organizations - by @Bekacru in https://github.com/runreal/better-auth/issues/1961 (ae78d)
- Update default invitation expiration time to use seconds - by @Bekacru (834e3)
- Fix conditional teamId inference - by @Netrifier in https://github.com/runreal/better-auth/issues/2133 (a6860)
- UpdateMemberRole failing if issuer has multiple roles - by @dustin-we in https://github.com/runreal/better-auth/issues/2104 (72631)
- rate-limiter:
- Handle missing IP address in rate limit function - by @Bekacru in https://github.com/runreal/better-auth/issues/1959 (4a310)
- Custom rate limiing table name breaking db query - by @Bekacru in https://github.com/runreal/better-auth/issues/1960 (09830)
- stripe:
- Allow plan retrieval by annual discount price ID - by @Lionvsx in https://github.com/runreal/better-auth/issues/1941 (3c60c)
- Allow customizing subscription schema - by @ping-maxwell in https://github.com/runreal/better-auth/issues/2105 (10893)
- two-factor:
- 2fa error codes failing to infer - by @ping-maxwell in https://github.com/runreal/better-auth/issues/2102 (f7199)
- username:
- web: