mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-09 17:18:31 +00:00
fix api reference
This commit is contained in:
parent
810119e4ee
commit
f667ee4feb
1 changed files with 4 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ import { Shield, ArrowRight } from "lucide-react";
|
|||
import Link from "next/link";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { api } from "@app/lib/api";
|
||||
import { createApiClient } from "@app/lib/api";
|
||||
import { useEnvContext } from "@app/hooks/useEnvContext";
|
||||
|
||||
type OrgPolicyRequiredProps = {
|
||||
orgId: string;
|
||||
|
|
@ -40,6 +41,8 @@ export default function OrgPolicyRequired({
|
|||
const t = useTranslations();
|
||||
const router = useRouter();
|
||||
|
||||
const api = createApiClient(useEnvContext());
|
||||
|
||||
const sessionExpired =
|
||||
policies?.maxSessionLength &&
|
||||
policies.maxSessionLength.compliant === false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue