turn on SSO
This commit is contained in:
+2
-2
@@ -35,8 +35,8 @@ export const authConfig = {
|
||||
authorized({ auth, request }) {
|
||||
const { pathname } = request.nextUrl;
|
||||
|
||||
// Always let the sign-in page through, even when unauthenticated.
|
||||
if (pathname === "/login") return true;
|
||||
// Public: the sign-in page and the k8s readiness probe.
|
||||
if (pathname === "/login" || pathname === "/api/health") return true;
|
||||
|
||||
// Not signed in -> Auth.js redirects to the sign-in page.
|
||||
if (!auth?.user) return false;
|
||||
|
||||
Reference in New Issue
Block a user