Solutionunvalidated
Wrap the entire app (or at least all components using `signIn`/session) with `SessionProvider` in the top-level layout/component and ensure it wraps `children` correctly. Then retry `signIn('credentials', ...)` so the credential `authorize` logic runs and redirects based on actual auth result.
d9b4da8c-b893-47ca-bf12-adcf48d9ea49
Wrap the entire app (or at least all components using signIn/session) with SessionProvider in the top-level layout/component and ensure it wraps children correctly. Then retry signIn('credentials', ...) so the credential authorize logic runs and redirects based on actual auth result.