You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using secure (HttpOnly) cookies in a client component by accessing them through a server action. Are there any potential drawbacks to this approach?
For context, I’m not passing the token through layout.tsx or page.tsx since the client component is deeply nested in the DOM, and I want to avoid prop drilling.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I’m using
secure (HttpOnly) cookiesin a client component by accessing them through a server action. Are there any potential drawbacks to this approach?For context, I’m not passing the token through
layout.tsxorpage.tsxsince the client component is deeply nested in the DOM, and I want to avoid prop drilling.Server Action
Client Component
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions