[GH-ISSUE #1186] currentURL parameter passed in every request #8634

Closed
opened 2026-04-13 03:46:47 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @daveycodez on GitHub (Jan 11, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1186

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

I noticed that every request using the auth client passes "currentURL" as a parameter. I've also tested omitting this parameter and the requests still function normally. It seems a little messy to be passing this parameter all the time for all requests.

Current vs. Expected behavior

Not pass unnecessary parameters in requests to the auth API routes

What version of Better Auth are you using?

1.1.10

Provide environment information

Next.js

Which area(s) are affected? (Select all that apply)

Client

Auth config (if applicable)

No response

Additional context

No response

Originally created by @daveycodez on GitHub (Jan 11, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1186 ### Is this suited for github? - [X] Yes, this is suited for github ### To Reproduce I noticed that every request using the auth client passes "currentURL" as a parameter. I've also tested omitting this parameter and the requests still function normally. It seems a little messy to be passing this parameter all the time for all requests. ### Current vs. Expected behavior Not pass unnecessary parameters in requests to the auth API routes ### What version of Better Auth are you using? 1.1.10 ### Provide environment information ```bash Next.js ``` ### Which area(s) are affected? (Select all that apply) Client ### Auth config (if applicable) _No response_ ### Additional context _No response_
GiteaMirror added the lockedbug labels 2026-04-13 03:46:47 -05:00
Author
Owner

@daveycodez commented on GitHub (Jan 11, 2025):

f0a479a163/packages/better-auth/src/client/config.ts (L38)

<!-- gh-comment-id:2585169017 --> @daveycodez commented on GitHub (Jan 11, 2025): https://github.com/better-auth/better-auth/blob/f0a479a163fc44189cc4e9e3f3dab604eedbe98b/packages/better-auth/src/client/config.ts#L38
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8634