2233 Commits

Author SHA1 Message Date
Bereket Engida
c822288518 chore: release v1.2.8 2025-05-15 20:45:34 -07:00
Bereket Engida
72e66ddc7f feat: add one time token generator 2025-05-15 20:25:01 -07:00
Maxwell
c717df986f fix(create-adapter): get default model ingetModelname (#2647) 2025-05-15 20:20:33 -07:00
Rahul Mishra
7eb1b2694b fix: getAccessToken should be available on the client (#2662) 2025-05-15 20:10:36 -07:00
Bereket Engida
6cb02b8680 chore: release v1.2.8-beta.8 2025-05-15 20:08:50 -07:00
Bereket Engida
eec052c787 chore: return early on invalid cookie 2025-05-15 20:08:44 -07:00
Muntasir Mahmud
d914650289 chore: clean up minor typo mistakes 2025-05-14 10:27:58 -07:00
KinfeMichael Tariku
81ab90865f docs: typo in admin plugin 2025-05-13 16:00:54 -07:00
Rahul Mishra
a017cbbaca fix: remove userInfoUrl check to allow using custom function without url (#2607) 2025-05-10 09:36:06 -07:00
cwstra
fdf3efb3c9 fix(open-api): misplaced requires properties (#2597)
* Fix verify email

* Fix sign-in social
2025-05-09 14:20:41 -07:00
Bereket Engida
58fb373ad2 chore:lint 2025-05-08 20:11:36 -07:00
Bereket Engida
ebc2ba753b fix: origin check failing when there is symbol in a query param (#2331) 2025-05-08 19:14:37 -07:00
Maxwell
fb130c9ee4 feat: getActions from client plugins to include clientOptions in get user client config (#2333)
* update: `getActions` from client plugins to include `clientOptions` in get user client config

* update: rename `clientOptions` to `options`

* chore: lint
2025-05-08 19:13:57 -07:00
Maxwell
cb1cbceffc feat(api-key): disable hashing API Keys (#2373)
* update(api-key): Custom hashing function for api-keys

Useful if the user wants to use a custom hashing algorithm, or if they want to disable hashing, they can just return the key itself.

* add: security warnings

* refactor: Change from customizaing hashing to disableHashing

* update: remove utils & update jsdoc

* chore: lint

* update: jsdoc & fix docs
2025-05-08 19:06:13 -07:00
Fredrik
81bdbf0f1b fix: pass context into createVerificationValue (#2363)
ctx wasn’t passed down before, so in config.databaseHooks.verification.create.before = async (verification, ctx) => {} the ctx argument was undefined in some cases. Now we forward ctx so the hook can receive it as expected.
2025-05-08 19:05:30 -07:00
Maxwell
79ff4b07f2 feat(adapter): allow providing id in create method (#2518)
* update(create-adapter): Allow providing `id` in create method

Allow providing `id` in the data of a create method if `forceAllowId` is provided as `true` in the create method call.

* chore: cleanup
2025-05-08 09:59:39 -07:00
Bereket Engida
52c38e2395 chore: release v1.2.8-beta.7 2025-05-08 08:45:55 -07:00
Rahul Mishra
97ea90eb85 fix: add default refreshAccessToken for microsoft provider (#2583) 2025-05-08 08:44:46 -07:00
Bereket Engida
4fc1f5a850 chore: release v1.2.8-beta.6 2025-05-07 12:56:16 -07:00
Bereket Engida
0aca4ba4c9 chore: release v1.2.8-beta.5 2025-05-07 12:56:06 -07:00
Mauricio Siu
b5537647a1 fix(api-key): pass real rateLimitvalue from ctx.body (#2432)
* fix(api-key): pass real rateLimitvalue from ctx.body

* test(api-key): add assertions for rate limit properties in api-key tests

* fix(api-key): use nullish coalescing for rateLimitEnabled default value

* test(api-key): add test for rateLimit configuration from plugin options
2025-05-07 11:20:38 -07:00
Rahul Mishra
6caf2a48ab feat: add getAccessToken api for oauth accounts (#2557)
* feat: add getAccessToken api for oauth accounts

* fix: remove returning refresh token and refactor

* add docs

* chore: move both access and refresh token to account

* chore: refactor to account.ts

* chore: mention refresh on getAcessToken

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-05-07 09:08:44 -07:00
Maxwell
947c4c9314 fix(organization): incorrect delete team error message (#2563) 2025-05-06 12:46:20 -07:00
Bereket Engida
0d97b2ee6a chore: move headers retriver in create session 2025-05-05 20:40:28 -07:00
Anatole Dufour
aef13e21c2 fix(stripe): reactivate subcrition filtering to only active or trialing subscription (#2268)
* feat(stripe): Adding priceId in db

* fix(stripe): reactivate subcrition filtering to only active or trialing subscription

* Revert "feat(stripe): Adding priceId in db"

This reverts commit 39e0224771.
2025-05-05 20:15:45 -07:00
Maxwell
f920103629 feat(anonymous): custom anonymous names (#2361)
* feat(anonymous): Custom name for anonymous users

* chore: lint

* chore: cleanup

* update: docs

* update: pass `ctx` to `generateName`
2025-05-05 20:14:10 -07:00
Bereket Engida
9f7ea672e6 fix(admin): handle redirecting banned users properly (#2273)
* fix: mapProfileToUser getting called twice during idToken login

* fix(admin): handle redirecting the user properly on social and callback based sign in

* chore: fix type
2025-05-05 20:11:45 -07:00
Bereket Engida
42a9f610d2 chore: update better-auth utils to v0.2.5 2025-05-05 11:47:09 -07:00
KinfeMichael Tariku
af2950e5ad fix: added password hashing to prevent timing attacks 2025-05-05 16:02:56 +03:00
Bereket Engida
b12b66cec6 chore: release v1.2.8-beta.4 2025-05-04 22:17:21 -07:00
KinfeMichael Tariku
3ddaa8a06f fix: revoke session on password reset 2025-05-04 20:25:10 +03:00
KinfeMichael Tariku
2baf504dc1 fix: remove unnecessary password hashing 2025-05-04 19:39:13 +03:00
KinfeMichael Tariku
77bd21d437 fix: username error code export 2025-05-04 16:33:25 +03:00
KinfeMichael Tariku
f876b3ffa2 fix: core schema model name definition on api-key 2025-05-04 16:29:13 +03:00
KinfeMichael Tariku
e75c67accc fix: resolve custom ts config path 2025-05-03 21:05:12 +03:00
KinfeMichael Tariku
b589e0405f fix: resolve type error caused by incorrect plugin import 2025-05-03 19:11:51 +03:00
Bereket Engida
80d93ea07e test: add validation for password update with incorrect current password 2025-05-02 04:53:41 -07:00
KinfeMichael Tariku
af402dba3a fix: add a default value for generated fields 2025-05-02 00:29:32 +03:00
Kevin Gallet
4bdeb3020c feat(generic-oauth): authorization request headers (#2507) 2025-05-01 07:16:54 -07:00
KinfeMichael Tariku
c8b4392854 fix: updateAt field on banning/unbanning users 2025-05-01 10:53:57 +03:00
Bereket Engida
9b813c8ced chore: release v1.2.8-beta.3 2025-04-27 12:50:45 +03:00
Bereket Engida
e333b63984 fix(generic-oauth): include missing tokens in account linking (#2461) 2025-04-27 12:45:27 +03:00
Bereket Engida
25c549a53d chore: update init snapshot 2025-04-27 12:44:11 +03:00
Bereket Engida
36599474ca fix(generic-oauth): on link account make sure to match provider Id before updating existing account (#2460) 2025-04-27 12:34:44 +03:00
Pablo Bagliere
638320e2b4 docs: fix typo sso plugin (#2455) 2025-04-26 22:29:14 +03:00
xuxu's code
6b2a51daa1 chore: fix typo toLowerCase instead of toLocaleLowerCase (#2421) 2025-04-24 18:14:14 +03:00
Bereket Engida
b9823cd75b fix(two-factor): verification deletion on otp should use the correct ID (#2425) 2025-04-24 18:13:41 +03:00
Bereket Engida
20bb862814 fix(stripe): include priceId on list active subscriptions 2025-04-24 10:26:42 +03:00
Maxwell
0577034634 fix(drizzle-adapter): missing operators (#2408) 2025-04-23 21:15:56 +03:00
Bereket Engida
f3677072c7 chore: release v1.2.8-beta.2 2025-04-23 00:34:40 +03:00