Commit Graph
2169 Commits
Author SHA1 Message Date
Bereket Engida 15cff90136 chore(test): use userInfo as a fallback 2025-04-07 10:16:11 +03:00
Bereket Engida 0b5c1941aa fix(generic-oauth): should check for email after mapProfileToUser 2025-04-07 10:02:02 +03:00
Bereket Engida 1f75bb504d chore: release v1.2.6-beta.6 2025-04-07 09:01:12 +03:00
Bereket Engida 83c67c67ea refactor(plugin): two-factor plugin disable endpoint shouldn't validate password length 2025-04-07 01:44:01 +03:00
MaxwellandGitHub f633d3e2dc fix(api-key): Return value of permissions should be object, not string (#1757) 2025-04-07 01:39:28 +03:00
Bereket EngidaandGitHub 382f51f97d chore: update better-call package version to ^1.0.6 (#2159) 2025-04-07 01:32:45 +03:00
Bereket Engida 6a0898fa88 fix: redirect to defaultErrorURL if errorURL doens't exist 2025-04-06 18:45:17 +03:00
Kinfe123 95e7819bd0 move keyword to better-auth 2025-04-06 12:40:26 +03:00
Kinfe123 05e00c4a26 move keyword to better-auth 2025-04-06 12:38:31 +03:00
Bereket Engida 85848f3ac5 chore: fix js doc typo on organization plugin 2025-04-06 10:02:29 +03:00
MaxwellandGitHub 4dcb982cb9 fix(admin): defaultRoles, adminRoles + others not applying user config (#2128) 2025-04-06 07:50:18 +03:00
Bereket EngidaandGitHub fb43141969 fix: missing disableRefresh type in server side getSession (#2141) 2025-04-06 07:49:45 +03:00
crutchtheclutchandGitHub f257f4b13d fix(open-api): hide disabled paths (#2144) 2025-04-06 07:45:45 +03:00
d24537b409 fix: genericOAuth default redirectURI for account linking (#2147)
* fix: genericOAuth default redirectURI for account linking

* chore: lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-06 07:44:35 +03:00
Bereket Engida 24214a9520 chore(oauth): replace encodeOAuthParameter with base64Url for encoding clientId and clientSecret 2025-04-05 10:36:12 +03:00
Bereket Engida 520a3e7bdc chore: release v1.2.6-beta.5 2025-04-05 08:06:05 +03:00
ffa24f74a5 fix(oauth): encode clientId and clientSecret in authorization header (#2120)
* fix(oauth2): encode clientId and clientSecret in authorization header

* fix(oauth2): refactor to use encodeOAuthParameter for clientId and clientSecret

* chore: lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-05 08:02:26 +03:00
NetrifierandGitHub a686070437 fix(organization): fix conditional teamId inference (#2133) 2025-04-05 01:36:21 +03:00
Bereket EngidaandGitHub 61dc492fc1 fix(custom-session): custom session failing to set cookies (#2124) 2025-04-04 19:39:52 +03:00
MaxwellandGitHub f7199e3e41 fix(two-factor): 2fa error codes failing to infer (#2102) 2025-04-04 09:24:29 +03:00
Bereket Engida ef18d1bb7e chore: release v1.2.6-beta.4 2025-04-04 01:00:52 +03:00
NetrifierandGitHub 381281f2d1 fix(admin): pass where clause to adapter.count to fix total value on listUser (#2109) 2025-04-04 01:00:31 +03:00
Shawn ErquhartandGitHub fcb43aa7b9 fix: verify github email when profile has an email (#2078) 2025-04-03 21:25:58 +03:00
MaxwellandGitHub 10893badbc fix(stripe): allow customizing subscription schema (#2105)
This was documented in docs at https://www.better-auth.com/docs/plugins/stripe#customizing-the-schema but wasn't implemented.
This is now fixed.
2025-04-03 21:23:43 +03:00
Nikita GanzikovandGitHub 8d35723221 feat: mapProfileToUser in vk social-provider (#1944) 2025-04-02 23:41:42 +03:00
Bereket Engida dbe66b9fde fix(oidc-provider): add cookie options for path and sameSite in authorize 2025-04-02 15:49:32 +03:00
SoSweetHamandGitHub 75faf76dcf fix: forget password flow failing because of id conversion (#2083) 2025-04-02 14:50:15 +03:00
NetrifierandGitHub df72736d36 feat(admin): Add support for passing multiple roles as array (#1907)
* feat: add support for passing multiple roles as array

* docs(admin): update docs

* fix(admin): Fix admin role types not referenced correctly when custom roles are not passed

* test(admin): add test for multiple roles

* fix(admin): Fix duplicate exports of InferRolesFromOption and parseRoles from admin and organization plugin
2025-04-01 20:24:02 +03:00
Bereket Engida dad19a9934 chore: lint 2025-03-31 00:24:09 +03:00
Bereket Engida 07d44db4d0 docs(strupe): add query param in for list sub referenceId 2025-03-31 00:08:31 +03:00
NetrifierandGitHub fd508a5ff9 chore(organization): rename InferRolesFromOption to InferOrganizationRolesFromOption (#2053) 2025-03-30 09:04:37 +03:00
Bereket Engida 4100faafe0 chore(deps): remove valibot 2025-03-30 09:03:48 +03:00
Bereket Engida e0fb2aecf7 chore: release v1.2.6-beta.3 2025-03-29 09:02:32 +03:00
Bereket Engida 1369d2b297 feat(phone-number): add attempts check 2025-03-29 09:02:25 +03:00
Bereket Engida 834e371798 fix(organization): update default invitation expiration time to use seconds 2025-03-29 09:02:00 +03:00
Bereket Engida fc3492d6c1 chore: release v1.2.6-beta.2 2025-03-28 10:18:53 +03:00
Stephen ZhouandGitHub 0b6a23fcd7 fix: export oAuth types (#2028) 2025-03-27 20:07:46 +03:00
Bereket Engida 99f9f0575c chore: release v1.2.6-beta.1 2025-03-27 11:03:49 +03:00
Bereket Engida f0e8f3fd14 fix: fallback to checking main db on session retrieval when storeSessionInDatabase is enabled 2025-03-27 09:48:55 +03:00
Bereket Engida 9b97962eda chore: release v1.2.5 2025-03-26 23:55:42 +03:00
KinfeMichael TarikuandGitHub 06193a3b63 feat: refresh token endpoint (#1779) 2025-03-26 23:51:33 +03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
128cca8151 chore(deps): bump next from 15.2.1 to 15.2.3 (#1982)
Bumps [next](https://github.com/vercel/next.js) from 15.2.1 to 15.2.3.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.2.1...v15.2.3)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-26 19:33:05 +03:00
Bereket Engida 4c304a9ad8 chore: release v1.2.5-beta.10 2025-03-26 11:57:34 +03:00
Bereket Engida 4afcb8e808 fix: additional fields type inference breaking on default value 2025-03-26 11:06:54 +03:00
John TanzerandGitHub ba2e58e7bb fix: only delete verification token on password reset after succesful db query (#1995) 2025-03-25 20:27:00 +03:00
Alexander LyonandGitHub 48a64171bb chore: remove dead code (#1989) 2025-03-25 17:43:55 +03:00
MaxwellandGitHub 3b6ca1504b chore(jsdoc): field attribute for required should be true (#1986) 2025-03-25 16:17:17 +03:00
Bereket Engida b2c7d8f598 chore: release v1.2.5-beta.9 2025-03-25 08:14:14 +03:00
Bereket EngidaandGitHub d74199f1e9 fix: respect disable signup on social providers (#1981) 2025-03-25 08:13:39 +03:00
Bereket Engida 7ea59f47b9 fix(username): update validator to allow dots in usernames 2025-03-24 17:18:07 +03:00