oscar
BABetter Auth
•Created by oscar on 3/15/2025 in #help
🛑 Next.js 15 – “cookies inside use cache” Error in Layout Component
Hey everyone, I’m running into an issue in my Next.js 15 app when trying to fetch session data inside my DashboardLayout component.
I need to pass request headers to my getSession function, but I keep getting the following error about accessing dynamic data sources inside a cache scope. I’ve tried extracting the headers outside the function and passing them as arguments, but the issue persists.
Has anyone encountered this before? Any ideas on how to properly handle this while keeping caching?
Here’s my current code:
Here's the error:
13 replies
BABetter Auth
•Created by oscar on 2/18/2025 in #help
ADMIN plugin not working
hey! i didn't want to open a gh issue just yet because maybe i'm doing something wrong, but i just integrated the admin plugin and found that nothing seems to be working for me.
1. signing up a new user doesn't set any default role value.
2. trying to impersonate (manually created users) or create user with auth-client gives 404
if someone could help me, i will greatly appreciate it. also lmk if you need any extra info. thanks ☺︎
6 replies