Skip to content

Trying to use Auth0 - Build failling #575

Closed Answered by Mecanik
Mecanik asked this question in Q&A
Discussion options

You must be logged in to vote

I stand corrected, after some extensive research it seems they added "edge" support. So to use Auth0 with "Edge" you just need to import the relevant functions. Example middleware:

// middleware.js
import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge';
export default withMiddlewareAuthRequired();

export const config = {
  matcher: '/user/:path*',
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mecanik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant