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
see which endpoint the authClient is calling and then fetch to the endpoint from the server (if there's no
auth.api.useListOrganizations
)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