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
I'm trying import the "withMiddlewareAuthRequired" function but get "Cannot find module '@auth0/nextjs-auth0/middleware' or its corresponding type declarations."
Reproduction
Install newest version of auth0 next js
Create middleware.ts
Paste
`import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/middleware';
export default withMiddlewareAuthRequired();`
SDK version
2.0.1
Next.js version
13.0.0
Node.js version
16
The text was updated successfully, but these errors were encountered:
Checklist
Description
`
import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/middleware';
export default withMiddlewareAuthRequired();
export const config = {
matcher: '/user/:path*',
}`
I'm trying import the "withMiddlewareAuthRequired" function but get "Cannot find module '@auth0/nextjs-auth0/middleware' or its corresponding type declarations."
Reproduction
`import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/middleware';
export default withMiddlewareAuthRequired();`
SDK version
2.0.1
Next.js version
13.0.0
Node.js version
16
The text was updated successfully, but these errors were encountered: