Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,我正在使用 NextAuth.js 构建我的 next.js 应用程序。
这里我遇到一个问题,如果我去一个受保护的页面或任何其他/pages/protected需要认证的受保护的页面,那么它将重定向到登录页面pages/auth/signin,成功登录后,我该如何重定向回/pages/protected?
/pages/protected
pages/auth/signin