mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Preparing the repository
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import {baseAuth} from "@/auth/auth";
|
||||
import {Organization} from "@prisma/client";
|
||||
|
||||
export const currentOrganization = async () => {
|
||||
const session = await baseAuth();
|
||||
console.log("mysession", session)
|
||||
if (!session?.organization) {
|
||||
return null;
|
||||
}
|
||||
return session.organization as Organization;
|
||||
}
|
||||
Reference in New Issue
Block a user