You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return new NextRequest('https://placeholder.com', { headers: headers() });
} catch (e: any) {
if (
e &&
'message' in e &&
typeof e.message === 'string' &&
e.message.toLowerCase().includes('Dynamic server usage'.toLowerCase())
) {
throw e;
}
throw new Error(
`Clerk: auth() and currentUser() are only supported in App Router (/app directory).\nIf you're using /pages, try getAuth() instead.\nOriginal error: ${e}`,