mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-16 04:57:52 +00:00
26 lines
483 B
TypeScript
26 lines
483 B
TypeScript
import { Org, User } from "@server/db";
|
|
|
|
export type CheckOrgAccessPolicyProps = {
|
|
orgId?: string;
|
|
org?: Org;
|
|
userId?: string;
|
|
user?: User;
|
|
};
|
|
|
|
export type CheckOrgAccessPolicyResult = {
|
|
allowed: boolean;
|
|
error?: string;
|
|
policies?: {
|
|
requiredTwoFactor?: boolean;
|
|
};
|
|
};
|
|
|
|
export async function checkOrgAccessPolicy(
|
|
props: CheckOrgAccessPolicyProps
|
|
): Promise<{
|
|
success: boolean;
|
|
error?: string;
|
|
}> {
|
|
return { success: true };
|
|
}
|