const myServerAction = () => {
// i have the authorized session
const session = auth.api.getSession({ headers: await getHeaders() });
// always 401's, but only on the server. any way to pass/configure the session?
const { data, error } = await authClient.organization.create({
// ...args
});
}
const myServerAction = () => {
// i have the authorized session
const session = auth.api.getSession({ headers: await getHeaders() });
// always 401's, but only on the server. any way to pass/configure the session?
const { data, error } = await authClient.organization.create({
// ...args
});
}