mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-09 23:49:47 +02:00
fix api reference
This commit is contained in:
@@ -12,7 +12,8 @@ import { Shield, ArrowRight } from "lucide-react";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import { useRouter } from "next/navigation";
|
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 = {
|
type OrgPolicyRequiredProps = {
|
||||||
orgId: string;
|
orgId: string;
|
||||||
@@ -40,6 +41,8 @@ export default function OrgPolicyRequired({
|
|||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
const api = createApiClient(useEnvContext());
|
||||||
|
|
||||||
const sessionExpired =
|
const sessionExpired =
|
||||||
policies?.maxSessionLength &&
|
policies?.maxSessionLength &&
|
||||||
policies.maxSessionLength.compliant === false;
|
policies.maxSessionLength.compliant === false;
|
||||||
|
|||||||
Reference in New Issue
Block a user