Do not allow using withAuthUserSSR when cookies are unsigned #195
Labels
breaking
The issue or PR will introduce a breaking change
enhancement
New feature or request
help wanted
Extra attention is needed
Is your feature request related to a problem? Please describe.
Currently, it's possible for a developer to introduce a security risk by using
withAuthUserSSR
alongside unsigned cookies, as described in the docs:Describe the solution you'd like and how you'd implement it
If the config
cookies.signed
property is false, throw if the user tries usingwithAuthUserSSR
.Is this a breaking change?
Yes
Describe alternatives you've considered
We could drop
withAuthUserSSR
altogether if developers don't need it.The text was updated successfully, but these errors were encountered: