mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-22 04:00:19 +02:00
Format all files
This commit is contained in:
@@ -25,15 +25,17 @@ export default async function Page(props: {
|
||||
const allCookies = await cookies();
|
||||
const stateCookie = allCookies.get("p_oidc_state")?.value;
|
||||
|
||||
|
||||
const idpRes = await cache(
|
||||
async () => await priv.get<AxiosResponse<GetIdpResponse>>(`/idp/${params.idpId}`)
|
||||
async () =>
|
||||
await priv.get<AxiosResponse<GetIdpResponse>>(
|
||||
`/idp/${params.idpId}`
|
||||
)
|
||||
)();
|
||||
|
||||
const foundIdp = idpRes.data?.data?.idp;
|
||||
|
||||
if (!foundIdp) {
|
||||
return <div>{t('idpErrorNotFound')}</div>;
|
||||
return <div>{t("idpErrorNotFound")}</div>;
|
||||
}
|
||||
|
||||
const allHeaders = await headers();
|
||||
|
||||
Reference in New Issue
Block a user