Commit Graph

3132 Commits

Author SHA1 Message Date
Bereket Engida
b93b28028c chore: release v1.2.6-beta.8 v1.2.6-beta.8 2025-04-11 11:30:01 +03:00
Ismael Iskauskas
b2deff51d7 fix(api-key): update rateLimitEnabled default to consider options (#1887)
* fix(api-key): update rateLimitEnabled default to consider options

* fix(api-key): refine rate limit handling to ensure default values are correctly applied

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-11 11:23:57 +03:00
Okanlawon Emmanuel
27b407e466 feat: openapi spec update (#1699)
* feat: openapi spec update

* fix: syntax

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-11 11:06:05 +03:00
Joshua Ji
ef87d8c4ee docs(next-auth-migration-guide): update db mapping (#1872) 2025-04-11 10:57:18 +03:00
KinfeMichael Tariku
06d6531c1e fix: hover style for light mode in community page
feat: update hover style for light mode in community page
2025-04-11 10:55:47 +03:00
Oscar
bf28165e90 feat: (captcha plugin) adding support for Google ReCAPTCHA v3 and hCaptcha (#1836)
* feat: Adding support for HCaptcha and Google ReCAPTCHA v3

* docs: Update captcha plugin documentation with reCAPTCHA v3 and hCaptcha

* fix: Restrict captcha verification to email sign-in and sign-up + updated documentation
2025-04-11 10:55:16 +03:00
Khiet Tam Nguyen
4590b5b456 feat: zoom social provider (#1671)
* feat: zoom oauth

* docs: zoom oauth instructions

* docs: notes on adding more zoom scopes depending on use case

* chore: remove console.log

* update zoom icon

* update zoom icon

* fix: zoom export

* chore: lint

---------

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-11 10:40:54 +03:00
sudoskys
8955d87292 feat: update hover style for light mode in community page 2025-04-11 15:21:31 +08:00
Igor Pawelec
0214251e3b docs: updated teams schema (#1640)
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-04-11 10:19:30 +03:00
Bereket Engida
a42671a8e7 feat: support user data mapping in id token social sign-in 2025-04-11 10:19:13 +03:00
Elliot Sharpe
bb1d2f3d0a docs: add instructions to install required expo packages for login with social to docs (#1636) 2025-04-11 10:13:10 +03:00
Bereket Engida
5ae40dc721 docs(phone-number): remove unused api 2025-04-11 10:10:41 +03:00
Bereket Engida
880a559546 feat(email-otp): support attempt numbers for email-otp (#2146) 2025-04-11 09:59:13 +03:00
Bereket Engida
1e5d44fe8f chore: fix lint 2025-04-11 09:56:40 +03:00
Bereket Engida
f912702601 chore: fix ci test script 2025-04-11 09:54:01 +03:00
Bereket Engida
341d9913e6 test: add phone number reset password attempt tests 2025-04-11 09:45:19 +03:00
Bereket Engida
a5a5f19147 chore: test ci and phone number test fixes 2025-04-11 09:28:41 +03:00
Bereket Engida
5591e78bcb feat(phone-number): add number of attempts configuration (#2046) 2025-04-11 09:22:09 +03:00
Maxwell
986614b241 feat: createAdapter and useNumberId (#1926)
* refactor(adapter): `createAdapter` helper

* update: Kysely adapter support

* update: memory adapter

* chore: cleanup

* update: MongoDB adapter supported

* update: mongodb adapter file names

* update: support for prisma adapter

- also fixed memory adapter with `getField`
- disabled all debug logs by default

* chore: lint

* fix: generate an `id` if it isn't already provided

* update(test): init config snapshot

* update: existing adapters tests to include an `id` existence check

* fix: renamed prisma adapter file names

* ^

* update(mongo): Removed `disableIdGeneration` for mongo adapter

* fix: dont add `id` from fields if `disableIdGeneration` is false

* fix: adapter converting dates to string using the wrong value data

* add: create-adapter tests

* update: moved `adapter` to `create-adapter` under the existing `adapters` folder

* WIP: docs

* fix: create-adapter test importing from wrong path

* WIP: docs

* update: key transformation map options are now objs not fns

* chore: lint

* update: cleanup & added debugLogs/usePlural option to some adapters

* update: tests

* chore: cleanup

* update: fields name & made customTransforminput/output to run after supportsDates/supportsBoolean/SupportsJSON to run

* chore: lint

* Update: docs

* update: update-many to not use transformOutput

* chore: lint

* fix: adapter options breaking

* update: set the default limit on findMany

* update: docs

* update: docs & cleaned up code

* update: create schema comes with `tables` now

* This is useless

* fix: api-key shouldn't handle id gen in row creation

* chore: lint

* WIP: useNumberId

* chore: cleanup

* removed all cases of `id` during adapter.create call

* update: useNumberId

* update: drizzle adapter schema generation

- update: pg now sets `id` field to use `uuid`.
- fix: sets the correct reference `onDelete` action.
- refactor: cleaned up the code a lot more

* update: added `supportNumericIds` in create adapter options

* chore: cleanup

* update(tests): added option to disable any adapter tests & created a `useNumberId` test

* fix: skip tests options were using old method

* chore: lint

* WIP: Drizzle tests with number id

* chore: lint

* fix: memory adapter failing on number id adapter tests

* chore: cleanup

* fix: adapter tests fail due to emails needing to be unique

* update: support drizzle adapter use-number-id

* fix: cleanup Drizzle Adapter tests

* fix: drizzle schema generation for reference id fields

* fix: type errs in memory adapter tests

* fix: memory adapter tests

* Update init.test.ts.snap

* fix: prisma tests correctly uses the right primsa client per schema

* Delete run-vitest.ts

* update: create-adapter to support `getDefaultFieldName`

* update: create-adapter adapter options updated

* fix: adapters using older function names

* fix: create-adapter now converts where clauses & added tests

* update: new `getFieldAttributes` option in create-adapter, and fixed convert where clause fn

* chore: cleanup

* update: convertWhereClause in create-adapter improved

* update: BAOptions to start using `database` & updated adapter tests

* fix: type errors

* chore: lint

* update: default config values for the create-adapter config

* fix: getModelName doesnt take into account of plural

* chore: cleanup

* update: improved getDefaultModelname

* fix: create-adapter transform input doesn't take into account reference IDs

* fix: transformInput on reference IDs doesn't take into account of array IDs

* chore: lint

* fix: prisma tests

* fix: Prisma adapter tests running one after another

* fix: init snapshot should state supportJSON as `false`

* fix: drizzle adapter tests

* update: adapter test options to allow passing a test prefix

* chore: add state.txt to gitignore

* remove: state.txt from gitignore, it's useless

* chore: lint

* Update adapter.prisma.numberid.test.ts

* fix: get-migration for mysql & mssql `id` fields to use varchar

* chore: cleanup

* update: adapter comes with adapter-test-debug-log functions

* update: made adapterTestDebugLog functions only be in adapter if config enabled it

* fix: transactionId for debug logs not working correctly

This was due to the adapter being reinitialized each test case

* update: Added colors to debug logs

* update: adapter tests a little more refined

* add: deepmerge dev deps to deep merge better auth options config for adapters

* fix: create-adapter types

* update: revert back to old types

* fix: prisma adapter tests now run one after another

* fix: kysely adapter to work when no `id` is provided

* update: mongoDB to set `supportNumericids` to false

* update(docs): discuss new `database` object in BetterAuthOptions

* add: support for custom ID generation

* fix: docs had incorrect default value for `supportsJSON`

* update(docs): added number id adapter test documentation

* fix: drizzle-adapter mysql tests

* update: drizzle-adapter tests to use deepmerge

* add: drizzle-adapter mysql tests to test useNumberId

* add: Prisma generate to support number id

* update: support the old `generateId` option, but warn the user for deprecation

* update: init test snapshot

* update: adapter tests not included in normal tests

* Update pnpm-lock.yaml

* fix: typo in file names for kysley test files

* update: separated adapter tests

* Update pnpm-lock.yaml

* fix: please tell me I actually fixed this

* fix: pnpm-lock merge conflict

* chore: lint

* fix: sveltekit pkg.json merge conflicts (hopefully)

* Delete pnpm-lock.yaml

* update: createSchema takes into account of rate-limit and secondaryStorage

* improve docs

* add drizzle returning id retriver

* chore: fix test script

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-11 09:04:49 +03:00
Braden Wong
2399c732d0 docs(hono): add client-side auth configuration guide (#2209) 2025-04-11 07:10:27 +03:00
Daniel Zaremba
84194242ae docs: fix syntax for account linking (#2216) 2025-04-11 00:03:23 +03:00
Bereket Engida
413bd9a95d chore: lint 2025-04-10 22:30:06 +03:00
Maxwell
9efcd56f33 fix(stripe): Throw err if passed referenceId when no subscription authorizeReference` is defined (#2129)
* fix(stripe): Throw err if passed `referenceId` when no `subscription.authorizeReference` is defined

* fix: typo
2025-04-10 22:13:22 +03:00
Geoff
6244fee5b1 docs: typo fix in example syntax fix (#2214) 2025-04-10 21:08:23 +03:00
KinfeMichael Tariku
171fab5273 fix: community page interaction
fix: community page interaction
2025-04-10 15:56:28 +03:00
Kinfe123
ea4651d491 fix: community page interaction 2025-04-10 15:51:13 +03:00
KinfeMichael Tariku
9d55587183 docs: correct prisma client for custom path
docs: correct prisma client for custom path
2025-04-10 14:39:56 +03:00
Kinfe123
f4a3812dae fix: prisma client docs 2025-04-10 14:37:00 +03:00
KinfeMichael Tariku
bb35ea8c51 docs: typo fix in db schema tables
fix:(docs) Typos in database schema tables
2025-04-10 10:15:48 +03:00
Bereket Engida
dea6f55493 chore: release v1.2.6-beta.7 v1.2.6-beta.7 2025-04-10 07:46:29 +03:00
Bereket Engida
a7492f681d chore: remove uncessary error object key 2025-04-10 07:46:23 +03:00
Bereket Engida
06ddd9121e feat(react-start): add react-start integration for cookie handling (#2119) 2025-04-10 07:45:55 +03:00
William Crutchfield
41f6d26089 Merge branch 'patch-2' into patch-1 2025-04-09 19:28:14 -07:00
Ben
a9440314cf docs: add RONIN database adapter to community adapters (#2200) 2025-04-10 05:24:40 +03:00
Bereket Engida
54d8e97324 docs: update jwt callout notice 2025-04-09 07:06:30 +03:00
Bereket Engida
01216a43d7 docs: update jwt callout notice 2025-04-09 07:06:22 +03:00
Bereket Engida
ba5120a50b chore:lint 2025-04-08 21:01:37 +03:00
Özgür ÖZALP
cbbd650efa fix: improve header value retrieval for IP address extraction (#1865) 2025-04-08 20:58:16 +03:00
Jason Lei
8263382b92 feat(stripe): restore subscription (#1705)
* feat: restore stripe subscription

* documentation

* cleanup

* linting

* add subscriptionId as optional parameter
2025-04-08 20:57:37 +03:00
Bereket Engida
155d9486ae feat: one-time token plugin (#2151) 2025-04-08 20:50:13 +03:00
KinfeMichael Tariku
48efd6ad1f feat(provider): twitter email support (#2176) 2025-04-08 20:20:37 +03:00
KinfeMichael Tariku
014a9aa9ad docs: plugin middlewares value
fix: plugin middleware docs
2025-04-08 20:05:38 +03:00
Kinfe123
bfdb2e5237 fix: plugin middleware docs 2025-04-08 20:00:34 +03:00
Dustin Weßels
72631554e5 fix(organization): updateMemberRole failing if issuer has multiple roles (#2104)
* fix(organization): updateMemberRole failing if issuer has multiple roles

* refactor: centralize permission checks using hasPermission utility in admin and organization plugins

* chore: cleaup

* chore: lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-04-07 11:12:38 +03:00
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 v1.2.6-beta.6 2025-04-07 09:01:12 +03:00
Bereket Engida
db13aa9a09 chore: update better-call package version to ^1.0.7 2025-04-07 08:45:16 +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
Maxwell
f633d3e2dc fix(api-key): Return value of permissions should be object, not string (#1757) 2025-04-07 01:39:28 +03:00