()
| 39 | }) |
| 40 | |
| 41 | export function useSession(): SessionHookResult { |
| 42 | const ctx = useContext(SessionContext) |
| 43 | if (!ctx) { |
| 44 | throw new Error( |
| 45 | 'SessionProvider is not mounted. Wrap your app with <SessionProvider> in app/layout.tsx.' |
| 46 | ) |
| 47 | } |
| 48 | return ctx |
| 49 | } |
| 50 | |
| 51 | export const useActiveOrganization = isOrganizationsEnabled |
| 52 | ? client.useActiveOrganization |
no outgoing calls
no test coverage detected