Closed MisterCommit closed 8 months ago
I can't find the part with the auth middleware in the code you attached. See https://github.com/QuiiBz/next-international/issues/187 if you want to chain multiple middlewares together.
@QuiiBz I follow a straightforward approach if token and role are there then the user is good to go else redirect to /signin
in the main middleware function. now if I want to add internationalisation middleware from your package how can I do this.
See https://github.com/QuiiBz/next-international/issues/187#issuecomment-1729745552 for an example of how to chain multiple middleware - closing this issue as it's not directly related to next-international.
I am already usingng middleware for auth. is there any how can i add
return I18nMiddleware(request);
before ruten.