Why cant i access organization enpoints in auth.api #809

Closed
opened 2026-03-13 08:05:15 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @VishwamDhavale on GitHub (Mar 8, 2025).

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). 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] }
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

@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

@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#809