Optional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureCreate .stack property on a target object
Optional
constructorOpt: FunctionCreate .stack property on a target object
Optional
constructorOpt: Function
Whenever you try to call
authenticator.authenticate("form", request)
and the request's body was already read before, the FormStrategy will throw this error.To fix it, ensure that you either move the logic that depends on the body to inside the strategy's
verify
callback, or clone the request before reading.Example
Example