7 lines
205 B
TypeScript
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')));
|