Commit Graph
4400 Commits
Author SHA1 Message Date
JelfandGitHub f5b86d7c2f fix(drizzle-adapter): correct count retrieval in the update function (#2244) 2025-04-13 15:12:47 +03:00
Anthony DePasquale a313d19198 URL 2025-04-13 14:11:08 +02:00
Anthony DePasquale 863129ca70 "up to date" (no hyphens needed when not modifying a noun) 2025-04-13 14:11:08 +02:00
Anthony DePasquale 952a6613ad API 2025-04-13 14:11:08 +02:00
Anthony DePasquale fc4c0eb280 Better Auth 2025-04-13 14:11:08 +02:00
Anthony DePasquale 1b092e42be "sign in" and "sign up" as verbs 2025-04-13 14:11:08 +02:00
Anthony DePasquale 9f78ee8d4c Code 2025-04-13 14:11:08 +02:00
Anthony DePasquale 25d517e99e TypeScript 2025-04-13 14:11:08 +02:00
KinfeMichael TarikuandGitHub 01d1be64e7 fix: authentication type missing on refershToken options
fix: added c.authentication to refresh token
2025-04-13 14:58:18 +03:00
MaxwellandGitHub c6eb16e626 fix(cli): schema gen with Drizzle for PG to generate text instead of uuid (#2248) 2025-04-13 14:30:16 +03:00
Kinfe123 feebaa8162 lint 2025-04-13 14:18:48 +03:00
Kinfe123 8836938b7b reexporting on build 2025-04-13 14:18:27 +03:00
Kinfe123 c0aca98462 lint 2025-04-13 14:11:50 +03:00
Kinfe123 12958447f8 export error code 2025-04-13 14:11:19 +03:00
Kinfe123 c8b52765e2 lint 2025-04-13 14:05:39 +03:00
Kinfe123 2ee923f64e feat: error code support for haveibeenpwned 2025-04-13 14:05:10 +03:00
Alexander Abou Chedid 48d6224693 fix: added c.authentication to refresh token 2025-04-13 04:14:23 +03:00
Bereket Engida f3b630312c chore: release v1.2.6 2025-04-13 01:08:07 +03:00
Bereket Engida e06b3e03d2 chore: update expo dependencies to latest versions
- Bump expo-constants to 17.0.8
- Update expo-linking to 7.0.5
- Upgrade expo-secure-store to 14.0.1
- Upgrade expo-web-browser to 14.0.2
2025-04-13 00:45:15 +03:00
Bereket Engida e09ceae2d6 feat(username): export the correct error codes for the plugin 2025-04-13 00:10:07 +03:00
Bereket Engida 6be9c58de9 chore: release v1.2.6-beta.13 2025-04-13 00:01:08 +03:00
Bereket Engida 3c7800aa46 chore: export sso helper types 2025-04-13 00:01:01 +03:00
c6d599e2c8 feat(generic-oauth): Added field discoveryHeaders to GenericOAuthConfig (#2205)
* Added field discoveryHeaders to GenericOAuthConfig allowing users to specify key pairs to be added in the discovery requests to OAuthProvider. Required for some OIDC configurations.

* Fix formatting from merge w/ main

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-04-13 00:00:06 +03:00
Bereket EngidaandGitHub 2249f93464 fix(admin): 'dontRememberMe' cookie handling during impersonation (#2236) 2025-04-12 23:59:42 +03:00
Bereket Engida 45f43dd6f4 fix: rethrow error from db hooks if it is APIError instances 2025-04-12 23:45:33 +03:00
cb900f9594 feat(organization): support multiple permissions check (#2227)
* feat: remove the artificial resource limit so that code can check

Also change `permission` to `permissions` (clearer for end user). `permission` is left for backwards compatibility.

* docs: add examples for multiple perms checking

* refactor: check `permissions` first, then legacy one

* feat: use union types for `permission` & `permissions`

* fix: properly use union types

* fix: remove accidental `@deprecated` comment

* chore: lint

* fix test

* chore: add oneTimeToken plugin to client barrel exports (#2224)

* docs(expo): add id token usage

* feat(oauth2): override user info on provider sign-in (#2148)

* feat(oauth2): override user info on provider sign-in

* improve email verification handling

* resolve mrge

* fix(sso): update overrideUserInfo handling to use provider configuration

* fix param

* chore: change plugin interface middleware type (#2195)

* fix: delete from session table when stopImpersonate called (#2230)

* chore: fix active organization inferred type

* chore: fix admin test

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
Co-authored-by: Wade Fletcher <3798059+wadefletch@users.noreply.github.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-04-12 22:00:58 +03:00
Bereket EngidaandGitHub de91c26708 feat(two-factor): refactor two-factor authentication with better error handling, configurable otp limits and verification (#2234)
* feat(two-factor): refactor two-factor authentication with better error handling, configurable otp limits and verification

* address review comments
2025-04-12 21:41:52 +03:00
a445e897c0 docs: typo in js doc for session database hook (#2231)
* minor correction in type doc comments

* update

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-12 21:40:13 +03:00
Bereket Engida de0aadb37f docs(security): add IP address header configuration for Better Auth 2025-04-12 21:27:02 +03:00
KinfeMichael TarikuandGitHub 78f18d1f93 fix: filter out fields with returned: false from session cookie cache (#2232) 2025-04-12 20:21:00 +03:00
Bereket Engida 478aa06b8a chore: fix admin test 2025-04-12 13:21:47 +03:00
Bereket Engida 989214cff6 chore: fix active organization inferred type 2025-04-12 13:20:59 +03:00
KinfeMichael TarikuandGitHub 3f4af02165 fix: delete from session table when stopImpersonate called (#2230) 2025-04-12 12:36:18 +03:00
KinfeMichael TarikuandGitHub 911bb5f68b chore: change plugin interface middleware type (#2195) 2025-04-12 11:37:10 +03:00
Bereket EngidaandGitHub f9b9672e78 feat(oauth2): override user info on provider sign-in (#2148)
* feat(oauth2): override user info on provider sign-in

* improve email verification handling

* resolve mrge

* fix(sso): update overrideUserInfo handling to use provider configuration

* fix param
2025-04-12 08:25:10 +03:00
Wade FletcherandGitHub 61027362b4 chore: add oneTimeToken plugin to client barrel exports (#2224) 2025-04-12 07:51:13 +03:00
Bereket Engida b885f35091 chore: release v1.2.6-beta.12 2025-04-11 21:02:48 +03:00
Bereket Engida 9d753f2748 chore: add one-time token plugin to build configuration and package.json 2025-04-11 20:57:27 +03:00
Wade FletcherandGitHub b7c724b10d fix: missing export one time token plugin (#2222) 2025-04-11 20:53:44 +03:00
Bereket Engida 81ef1fbc49 chore: release v1.2.6-beta.11 2025-04-11 19:53:01 +03:00
Bereket EngidaandGitHub 9e951aa0b3 feat: add option to disable session refresh on use (#2126)
* feat: add option to disbale session refresh on use

* docs(session-management): add documentation for disabling session refresh option
2025-04-11 17:12:35 +03:00
Bereket EngidaandGitHub 0493746a4b feat(jwt): add sub claim and getSubject (#2194) 2025-04-11 14:06:20 +03:00
c14f127fd3 feat(socialLink): add support for custom scopes in social account linking (#2074)
* feat(socialLink): add support for custom scopes in social account linking

- Updated documentation to include information on requesting specific scopes when linking social accounts.
- Added a test case to verify that custom scopes are correctly passed to the authorization URL.
- Modified the account linking endpoint to accept additional scopes as an optional parameter.

* chore: lint

* fix(account): update account linking logic and tests

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-11 13:54:30 +03:00
Bereket Engida 8643cb6d13 chore: release v1.2.6-beta.10 2025-04-11 13:53:16 +03:00
Bereket EngidaandGitHub 3b6598aa9f feat: delete token expiry configuration (#2138) 2025-04-11 13:52:00 +03:00
Bereket EngidaandGitHub a927461ae5 fix: ipAddress and userAgent missing on server authentication (#2121)
* fix: ipAddress and userAgent missing on server authentication

* update craeteSession to use headers

* chore: revert version
2025-04-11 13:51:30 +03:00
Mauricio SiuandGitHub b266048941 feat: support custom issuer totp (#2113)
* feat(two-factor): add optional issuer parameter for TOTP URI generation

* feat(two-factor): enhance issuer parameter handling for TOTP URI generation

* feat(two-factor): add tests for custom issuer handling and fallback to appName in TOTP URI generation

* docs(two-factor): improve formatting and spacing in 2FA documentation for better readability

* docs(two-factor): refine code formatting and spacing in 2FA documentation for improved clarity
2025-04-11 13:13:04 +03:00
Bereket EngidaandGitHub c0f158f02a fix(apple): update responseType to include code and id_token (#2091)
* fix(apple): update responseType to include code and id_token

* fix: include user object from the authroization url
2025-04-11 13:11:53 +03:00
Bereket EngidaandGitHub 81e45012ef feat(organization): add invitation limit (#2014)
* feat: add invitation limit

* feat: add list invitations functionality and cancel pending invitations on re-invite

* update docs

* update docs
2025-04-11 12:44:49 +03:00
Alexander LyonandGitHub 6b22e08c2b feat(facebook): add support for business login using config ids (#1990) 2025-04-11 12:42:07 +03:00