Vercel/src/auth/cache.ts
2025-04-04 18:09:47 -05:00

5 lines
139 B
TypeScript

import { cache } from 'react';
import { auth } from '@/auth/server';
export const authCachedSafe = cache(() => auth().catch(() => null));