[GH-ISSUE #1733] Why cant i access organization enpoints in auth.api #8892

Closed
opened 2026-04-13 04:08:33 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @VishwamDhavale on GitHub (Mar 8, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1733

im trying to get active members of the organization from server and not from client but getting error why is it like that
unhandledRejection: [Error [BetterCallAPIError]: API Error: UNAUTHORIZED ] {
status: 'UNAUTHORIZED',
headers: [HeadersList],
body: [Object]
}

Originally created by @VishwamDhavale on GitHub (Mar 8, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1733 im trying to get active members of the organization from server and not from client but getting error why is it like that unhandledRejection: [Error [BetterCallAPIError]: API Error: UNAUTHORIZED ] { status: 'UNAUTHORIZED', headers: [HeadersList], body: [Object] }
GiteaMirror added the locked label 2026-04-13 04:08:33 -05:00
Author
Owner

@Kinfe123 commented on GitHub (Mar 8, 2025):

can you please share the snippet of the code that you have used and make sure to check on headers as well

<!-- gh-comment-id:2708498725 --> @Kinfe123 commented on GitHub (Mar 8, 2025): can you please share the snippet of the code that you have used and make sure to check on headers as well
Author
Owner

@Bekacru commented on GitHub (Mar 9, 2025):

Make sure to provide headers in your auth.api call

<!-- gh-comment-id:2708740839 --> @Bekacru commented on GitHub (Mar 9, 2025): Make sure to provide `headers` in your `auth.api` call
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8892