Commit Graph

293 Commits

Author SHA1 Message Date
Immanuel Calvin Herchenbach
d2d40053a4 docs: fix sveltekit client session store example (#4955) 2025-09-29 18:02:22 -07:00
KinfeMichael Tariku
eb76a7fc68 feat(db): delete hooks (#4792)
Co-authored-by: Alex Yang <himself65@outlook.com>
2025-09-23 22:21:51 +00:00
TheUntraceable
69c9b9f8c9 feat(discord): allow specification of permissions (#4717)
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-18 00:10:31 +00:00
Alex Yang
cfcec1ae50 Merge branch 'canary' into v1.3.10-staging
# Conflicts:
#	packages/better-auth/package.json
#	packages/cli/package.json
#	packages/expo/package.json
#	packages/sso/package.json
#	packages/stripe/package.json
#	pnpm-lock.yaml
2025-09-15 08:51:27 -07:00
Alex Yang
22b78cfe72 Revert "feat: support cross-domain cookie (#4482)"
This reverts commit 61b6a87435.
2025-09-12 00:34:01 -07:00
Henrique Braga
61b6a87435 feat: support cross-domain cookie (#4482)
Co-authored-by: Alex Yang <himself65@outlook.com>
Co-authored-by: Rikhi Singh <114336052+rikhisingh@users.noreply.github.com>
2025-09-09 17:09:24 -07:00
Daniel Bogale
79051b1aa1 docs: fix typos and improve grammar across multiple pages (#4519) 2025-09-08 17:16:17 -07:00
Alex Yang
942b813337 Merge branch 'canary' into v1.3.9-staging
# Conflicts:
#	packages/better-auth/package.json
#	packages/cli/package.json
#	packages/expo/package.json
#	packages/sso/package.json
#	packages/stripe/package.json
2025-09-08 12:11:13 -07:00
Bereket Engida
693c8cbba9 feat(rate-limiter): allow disabling custom paths to not be rate limited (#4502) 2025-09-07 13:25:37 -07:00
Alex Yang
905a8d691a Merge remote-tracking branch 'upstream/canary' into v1.3.8-staging 2025-09-03 16:24:21 -07:00
KinfeMichael Tariku
0090b22b7d docs: fix incorrect rendering of default tab value (#4411) 2025-09-03 16:23:38 -07:00
Alex Yang
d4bbb32910 Merge branch 'canary' into v1.3.8-staging
# Conflicts:
#	demo/nextjs/package.json
#	docs/package.json
#	packages/better-auth/package.json
#	pnpm-lock.yaml
2025-09-03 15:21:51 -07:00
azez
5cb6132370 docs: update client.mdx to correct svelte 5 onclick syntax (#4382) 2025-09-03 08:14:25 -07:00
Ross
4925969691 docs: update users-accounts.mdx (#4160) 2025-08-29 10:58:50 -07:00
Maxwell
1430382312 fix(custom-session): also mutate multi-session response (#3868) 2025-08-28 10:41:15 -07:00
Alex Yang
7931166c8d feat(cli): add info script (#4143) 2025-08-27 10:49:34 -07:00
Andy Bonventre
86f6234f8d chore: fix token encryption doc code snippet (#4067) 2025-08-21 11:37:27 -07:00
Bereket Engida
99834437b0 fix: secondary storage should allow returning both string and parsed json (#4076)
* docs: hero section alignment with feature section on big screens (#4018)

* fix: hero section alignment with feature section on big screens

* fix

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>

* chore: fix broken testomnial link

* fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization

* chore: update sso docs

* chore: fix import typo

* docs: hero section alignment with feature section on big screens (#4018)

* fix: hero section alignment with feature section on big screens

* fix

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>

* chore: fix broken testomnial link

* fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization

* chore: update sso docs

* chore: fix import typo

* chore: release v1.3.7-beta.4

* chore: release v1.3.7

* support both json and string

* add test and type

* fix up docs

* fix test

* fix test

* fix type

---------

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-08-18 21:08:39 -07:00
Jason Gerbes
b165c13055 feat(email-otp): add check verification otp endpoint (#1149)
* Improve OTP password reset flow

* Doc improvements

* Logic improvements

* nit

* Prevent too many attempts

* Changeset

* chore: changeset

* chore: remove braces

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-14 18:35:26 -07:00
Aditya kumar singh
f363681f70 fix: remove deep array merge when merging hooks context (#3160)
* Update to-auth-endpoints.ts

fixed

* biome error

* first commit

* fix(org): use correct slug lookup when setting active org

* docs: adding reference to surrealdb adapter rewrite (#3754)

Adding reference to surrealdb adapter rewrite, with passing tests and schema generation as well as surreal native parameters.

* chore(demo): replace isLoading using `useTransition` (#3775)

* fix: use `useTransition` for isLoading

* fixup! fix: use `useTransition` for isLoading

* fix(reddit): refresh access token should use `basic` auth (#3753)

* reddit auth type

* changesets

* chore: remove changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>

* docs: unify component implementations for consistency (#3799)

* fix(docs): unify component implementations for consistency

* update

* fix: add missing team reference in teamMember schema (#3801)

* fix(organization): team members should be cleaned up on delete team (#3833)

* feat(stripe): create billing portal session (#3625)

* feat(stripe) : add billing portal session endpoint

* create billing portal session

* update docs

* chore: changeset

* chore: fix stripe

* chore: remove comment

* chore: update docs

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>

* fix(cli): prisma schema generate mismatch on custom plugin table names (#3021)

* fix: generate mismatch

* clean up

* linkt

* lint

* clean up

* clean up

* lint

* lint

* test

* clean up

* clean up

* lint

* update

* docs: update TOTP 2FA docs to state that Better-Auth implements a delay window (#3586)

Better Auth uses a delay window for TOTP code verification to ensure that it is resilient to time delays

* docs: remove unused import of 'auth' type in authClient setup (#3856)

In the previous implementation, the import statement for 'auth' type from './auth' was included as part of the setup for the authClient, but it is no longer being used in the current code. This update removes the unnecessary import to clean up the code and prevent potential confusion.

Additionally, the authClient setup remains intact with the use of 'inferAdditionalFields' plugin to define additional user fields (role type set to 'string').

- Removed unused import: `import type { auth } from "./auth"`
- Kept the authClient initialization with 'inferAdditionalFields' plugin

This resolves a minor issue and ensures that the code remains clean and maintainable.

* docs: enhance trustedOrigins option with examples (#3857)

* docs: enhance trustedOrigins option documentation

* nit

* docs: fix typo in SSR performance section

The line was missing "the".

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>

* chore: update api key docs (#3864)

Closes #3724

* docs: fix google auth prompt (#3894)

Google OAuth2 uses space delimiters instead of + 

https://developers.google.com/identity/protocols/oauth2/web-server

* docs(hono): update RPC client to use init config instead of custom fetch (#3597)

* add test

* chore: lint

---------

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Manuel Sanchez <manuel@msanchez.dev>
Co-authored-by: Alex Yang <himself65@outlook.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: dogus <147812199+rhitune2@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Hysterelius <71912794+Hysterelius@users.noreply.github.com>
Co-authored-by: Jovan Lanutan <jolanutan@gmail.com>
Co-authored-by: Nate <37544626+ntedvs@users.noreply.github.com>
Co-authored-by: Dagmawi Babi <44819176+dagmawibabi@users.noreply.github.com>
Co-authored-by: Braden Wong <13159333+braden-w@users.noreply.github.com>
2025-08-10 16:46:58 -07:00
Bereket Engida
3babdbb07c docs: update session mangement caveats 2025-08-01 23:02:40 -07:00
Bereket Engida
e27523fd07 chore: cleanup database guide 2025-07-27 22:01:02 -07:00
Bereket Engida
de50a5a41c docs: fix typo on cookies guide 2025-07-27 22:01:02 -07:00
Bereket Engida
040092bf7c docs: fix typo 2025-07-27 21:52:59 -07:00
Bereket Engida
65fed29873 docs: improve cookie concept guide 2025-07-27 21:51:33 -07:00
Marcel Losso Forte
3afb25a780 docs: update password change instructions (#3641)
* docs: update password change instructions

* docs: add missing `requireSession` to change-password API method
2025-07-27 13:15:02 -07:00
Bereket Engida
8fdcf54a7b docs: fix account deletion process for OAuth users 2025-07-26 11:47:24 -07:00
Justin
f27a579169 docs: make client-side vs. server-side explicit (#3603) 2025-07-24 23:25:12 -07:00
Khiet Tam Nguyen
e11c51e210 feat(cli): added --yes for generate/migrate, deprecated --y (#3542)
* feat(cli): added --yes option, deprecated --y, as per #1937

* feat:(cli): add deprecation warning to console if --y is used

* style(cli): linted migrate.ts & generate.ts

* docs(cli): revert 1.0 changelog
2025-07-23 09:31:06 -07:00
KinfeMichael Tariku
1a1594d7f9 feat: afterEmailVerification callback (#3046)
* fix: callback to run after successful email verification

* lint

* update

* chore: update

* callback label
2025-07-18 19:10:19 -07:00
KinfeMichael Tariku
3178c5fad8 docs: getting session from the context in db hook (#3051)
* docs: getting session from the context in db hook

* update

* update
2025-07-18 19:03:41 -07:00
Maxwell
e954c93361 docs(typescript): warn ts inference error regarding tsconfig (#3055) 2025-07-18 18:53:57 -07:00
KinfeMichael Tariku
dbaa342269 docs: fix plugin after hook handler example (#3372) 2025-07-14 22:16:42 -07:00
Danny
f569ff1402 docs: extend rate limiting docs and add small warning (#3365)
* refactor: remove useless variable assignment

* refactor: remove unused param

* docs: extend rate limit docs to include info about connecting ip address and how it's used

* fix: linting
2025-07-14 09:38:06 -07:00
Dagmawi Babi
3fed4c0f70 docs: fixed errors and typos in plugin docs (#3349)
* fixed typo in plugin docs

* fixed weird sentence in plugin docs

* fixed ts error in plugins docs
2025-07-12 00:05:56 -07:00
KinfeMichael Tariku
a2029ef7fd fix: linking accounts for anon users with one tap and passkey (#3124)
* typo

* typo

* linking accounts

* clean up

* clean up

* clean up

* clean up
2025-07-10 11:15:37 -07:00
KinfeMichael Tariku
1eff55bde8 docs: fix typo in plugin (#3122)
* typo

* typo

* typo

* typo

* typo
2025-06-22 17:50:47 -07:00
reslear
38e422e4c4 feat: link account with idToken (#1830)
* add idToken to link account

* add docs

* Implemented linking accounts based on idToken

* fix: tests

* docs: prevent diff

* docs: prevent diff

---------

Co-authored-by: kzlar <120426485+kzlar@users.noreply.github.com>
2025-06-20 15:01:06 -07:00
KinfeMichael Tariku
e0b38d0018 docs: input field usage on additional fields (#2991) 2025-06-20 13:08:33 -07:00
Bereket Engida
b6edbb9ab9 docs: remove callout and default cookie attributes for cross subdomain cookies 2025-06-15 12:44:33 -07:00
KinfeMichael Tariku
335e6be0bf docs: headers in the setPassword method (#2923) 2025-06-06 14:22:15 -07:00
KinfeMichael Tariku
f6e18b8a85 docs: cors callout in cookies (#2886) 2025-06-03 00:11:10 -07:00
Snehendu Roy
ebf06eb00c docs: email otp verification guide (#2717) 2025-05-27 23:09:52 -07:00
Cherish
f748171df6 docs: typo fix in seesion-management docs(#2785) 2025-05-25 12:57:10 -07:00
Rahul Mishra
32cda8ae57 feat: add account info endpoint (#2664)
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-05-23 12:56:00 -07:00
Rahul Mishra
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 Engida
8e9a8fde28 docs: add additional scope request example 2025-05-22 14:22:50 -07:00
Muhammed Rahif
d23084d5d2 docs: typo update on auth client 2025-05-18 23:38:45 -07:00
Rahul Mishra
2f8dd56d5b docs: providerId params in getAccessToken docs (#2707) 2025-05-18 12:30:57 -07:00
Muntasir Mahmud
d914650289 chore: clean up minor typo mistakes 2025-05-14 10:27:58 -07:00