{{ message }}
Repository navigation
fix(docs): Remove unused import of 'auth' type in authClient setup - #3856
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
cubic analysis
No issues found across 1 file. Review in cubic
Kinfe123
approved these changes
Aug 7, 2025
Kinfe123
pushed a commit
that referenced
this pull request
Aug 8, 2025
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.
Bekacru
added a commit
that referenced
this pull request
Aug 10, 2025
* 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>
Bekacru
added a commit
that referenced
this pull request
Aug 11, 2025
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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').
import type { auth } from "./auth"This resolves a minor issue and ensures that the code remains clean and maintainable.
Summary by cubic
Removed an unused import of the 'auth' type from the authClient setup example in the TypeScript docs to keep the code clean.