auth.api.listUsers returns UNAUTHORIZED but I am admin
Hello,
I have written this function
But the API returns
⨯ [Error [BetterCallAPIError]: API Error: UNAUTHORIZED ] {
status: 'UNAUTHORIZED',
headers: Headers {},
body: [Object],
digest: '3161027971'
}
When I use
auth.api.getSession
I see that my account has role: 'admin'
. What is the Problem?2 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Thank you. The docs only mentioned the headers with the getSession api.