how to list user organizations on server side?

i only found the authClient.useListOrganizations() but how would i go about getting that on server side?
2 Replies
sebastian
sebastian3mo ago
see which endpoint the authClient is calling and then fetch to the endpoint from the server (if there's no auth.api.useListOrganizations)
Adam Borygo
Adam BorygoOP3mo ago
yeah i found the method for it on server side now im wondering how to use it in customSession plugin since i cant really use the auth.api in its own declaration

Did you find this page helpful?