I ended up putting withPageAuthRequired on this page, which ends up putting me through the login process with each refresh, and then lands me back on the page. Queries are run to populate the page just fine. However, when I call the server action that filters the results on the page, I get an error telling me there is no valid session.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
No valid session after successful login using Next.js sdk | 1 | 884 | April 5, 2024 | |
NextJS getSession() is returning null | 4 | 7912 | April 5, 2023 | |
Latest NextJS 14, getSession() or getAccessToken() is causing re-rendering the entire page in server-actions | 7 | 1642 | December 8, 2024 | |
Auth0 getAccessToken() and getSession() Not Working in Next.js 15 App Router (Server & Client Components) | 5 | 119 | April 29, 2025 | |
Next.js using getSession or getAccessToken resulting in user authentication being lost | 2 | 175 | February 7, 2025 |