Commit Graph
4400 Commits
Author SHA1 Message Date
Rahul MishraandGitHub bc2bc2e9fd feat: new user delete flow (#2704)
* feat: new user delete flow

* fix: modify and add test cases
2025-05-23 12:46:10 -07:00
Bereket EngidaandGitHub 9cc2e3d8ab feat: MCP plugin (#2666)
* chore: wip

* wip

* feat: mcp plugin

* wip

* chore: fix lock file

* clean up

* schema

* docs

* chore: lint

* chore: release v1.2.9-beta.1

* blog

* chore: lint
2025-05-23 12:44:51 -07:00
Bereket EngidaandGitHub a12b7fc331 fix: plugin init context should carry modified context from other plugins (#2754) 2025-05-22 14:58:57 -07:00
MaxwellandGitHub 3244e388b8 chore(trustedOrigin): warn if invalid value is passed (#2699)
Right now, if an invalid trusted origin is passed, it becomes very hard to debug and find the cause of a given endpoint failing.

As far as I've seen, there error can be as undescriptive as:
dev: # SERVER_ERROR:  TypeError: Cannot read properties of undefined (reading 'includes')
dev:     at Array.some (<anonymous>)
dev:  POST /api/auth/sign-up/email 500 in 915ms

This will throw an error stating that a valid trusted origins list is required.
2025-05-22 12:44:03 -07:00
SvendandGitHub 9472a4f9bf fix: Improve the callbackURL parameter for social, oauth, SSO (#2740)
* fix: Fix the issue where the callbackURL parameter is missing when emailVerified is false using the idToken method for social login

* fix: Fixed the issue where the callbackURL was missing in the verification email after logging in with the genericOAuth and SSO plugins
2025-05-22 11:50:03 -07:00
KinfeMichael TarikuandGitHub 3f3495d393 fix: make sure updatedAt is updated on session refresh (#2747) 2025-05-22 11:35:45 -07:00
ArmanandGitHub 83acedd634 fix(X): used x.com domain for all twitter provider urls (#2727) 2025-05-21 09:25:07 -07:00
SvendandGitHub 0dddc723cb fix(apple): correctly map email verification status from profile (#2730) 2025-05-21 09:24:31 -07:00
Rahul MishraandGitHub 754c32ca95 fix: use dynamic list of social providers to allow generic oauth (#2643) 2025-05-20 13:52:41 -07:00
001bfab3ad fix(oidc-provider): consent should be able to be accepted if state is empty (#2723)
* fix consent not able to be accepted if state is empty

* chore: fix lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-05-20 13:26:59 -07:00
Vinayak KulkarniandGitHub f7c53adb38 chore: fix typo in AuthorizeResponse type (#2724) 2025-05-20 12:55:24 -07:00
Rahul MishraandGitHub 659f8391df docs: fix discord invite links 2025-05-17 05:09:10 -07:00
AlexandGitHub e7aec18d7d chore: missing quotes for drizzle default values 2025-05-16 10:02:43 -07:00
Philipp LampertandGitHub 32ef53010b fix(magic-link): URI-encode magic link callbackURL (#2628) 2025-05-16 09:05:32 -07:00
Bereket EngidaandGitHub 62ed1a7783 feat: support bun sqlite by default (#2551)
* feat: support bun sqlite by default

* chore: add database type

* chore: proper lic

* chore: release v1.2.8-beta.5
2025-05-15 21:02:28 -07:00
Bereket EngidaandGitHub 56753b060f fix(admin): respect cookie prefix for impersonate admin cookies (#2553) 2025-05-15 20:55:44 -07:00
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
MaxwellandGitHub c717df986f fix(create-adapter): get default model ingetModelname (#2647) 2025-05-15 20:20:33 -07:00
Rahul MishraandGitHub 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 MahmudandGitHub d914650289 chore: clean up minor typo mistakes 2025-05-14 10:27:58 -07:00
KinfeMichael TarikuandGitHub 81ab90865f docs: typo in admin plugin 2025-05-13 16:00:54 -07:00
Rahul MishraandGitHub a017cbbaca fix: remove userInfoUrl check to allow using custom function without url (#2607) 2025-05-10 09:36:06 -07:00
cwstraandGitHub 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 EngidaandGitHub ebc2ba753b fix: origin check failing when there is symbol in a query param (#2331) 2025-05-08 19:14:37 -07:00
MaxwellandGitHub 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
MaxwellandGitHub 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
FredrikandGitHub 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
MaxwellandGitHub 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 MishraandGitHub 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 SiuandGitHub 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
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
MaxwellandGitHub 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 DufourandGitHub 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
MaxwellandGitHub 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 EngidaandGitHub 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 TarikuandGitHub 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 TarikuandGitHub 3ddaa8a06f fix: revoke session on password reset 2025-05-04 20:25:10 +03:00
KinfeMichael TarikuandGitHub 2baf504dc1 fix: remove unnecessary password hashing 2025-05-04 19:39:13 +03:00
KinfeMichael TarikuandGitHub 77bd21d437 fix: username error code export 2025-05-04 16:33:25 +03:00
KinfeMichael TarikuandGitHub f876b3ffa2 fix: core schema model name definition on api-key 2025-05-04 16:29:13 +03:00