/dashboard), my Next.js middleware detects that they are not signed in and redirects them to my sign-in page at /sign-in./sign-in?redirect_url=/dashboard, so that after the user successfully authenticates, they can be redirected back to the page they originally tried to visit.