New session endpoint not updated in client #132

Closed
opened 2026-03-13 07:34:38 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @darklight9811 on GitHub (Oct 23, 2024).

Describe the bug
When the react client tries to fetch the endpoint for session, it goes for /session instead of /get-session

To Reproduce
Steps to reproduce the behavior:

  1. setup everything
  2. open the client and see it trying to get the session and it being returned a 404

Expected behavior
for the endpoint to reach, even if its not authenticated

Additional context
This was working on 0.5.2, so it must be a new bug, the endpoint for the backend is being described here:
2f3ced95fb/packages/better-auth/src/api/routes/session.ts (L15)

Originally created by @darklight9811 on GitHub (Oct 23, 2024). **Describe the bug** When the react client tries to fetch the endpoint for session, it goes for `/session` instead of `/get-session` **To Reproduce** Steps to reproduce the behavior: 1. setup everything 2. open the client and see it trying to get the session and it being returned a 404 **Expected behavior** for the endpoint to reach, even if its not authenticated **Additional context** This was working on 0.5.2, so it must be a new bug, the endpoint for the backend is being described here: https://github.com/better-auth/better-auth/blob/2f3ced95fb62ab9eaf7806beadfb86a3aff09087/packages/better-auth/src/api/routes/session.ts#L15
Author
Owner

@Bekacru commented on GitHub (Oct 24, 2024):

this should be fixed since 0.5.3-beta.2

@Bekacru commented on GitHub (Oct 24, 2024): this should be fixed since `0.5.3-beta.2`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#132