Vercel/src/auth/cache.ts
2024-02-26 11:53:34 -06:00

7 lines
205 B
TypeScript

import { cache } from 'react';
import { auth } from '@/auth';
import { screenForPPR } from '@/utility/ppr';
export const authCachedSafe = cache(() => auth()
.catch(e => screenForPPR(e, null, 'auth')));