Ready for 1.1.3-rc.2

This commit is contained in:
charlesgauthereau
2025-11-03 11:37:14 +01:00
parent 9894e2582d
commit 9c1aa66b41
11 changed files with 451 additions and 315 deletions
+1 -50
View File
@@ -274,56 +274,7 @@ export const unlinkAccount = async (provider: string, account: string) => {
} catch (e) {
}
};
//
// export const getOrganization = async ({
// organizationId,
// organizationSlug,
// }: {
// organizationId?: string;
// organizationSlug?: string;
// }) => {
// const query = organizationId
// ? {organizationId}
// : {organizationSlug};
//
// console.log(query);
//
// try {
// return await auth.api.getFullOrganization({
// headers: await headers(),
// // query,
// });
// } catch (e) {
// console.error(e);
// return null;
// }
// };
// export const getOrganization = async ({
// organizationId,
// organizationSlug,
// }: {
// organizationId?: string;
// organizationSlug?: string;
// } = {}) => {
// const query =
// organizationId != null
// ? {organizationId}
// : organizationSlug != null
// ? {organizationSlug}
// : undefined;
//
// console.log(query);
//
// try {
// return await auth.api.getFullOrganization({
// headers: await headers(),
// ...(query ? {query} : {}),
// });
// } catch (e) {
// console.error(e);
// return null;
// }
// };
export const getOrganization = async ({
organizationId,
organizationSlug,