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
There's no way to send 422, 403, 429, or 500. json({ ... }, 40x) thrown in the parameter function in FormStrategy constructor is ignored. The format of the JSON payload is fixed with {message: string}.
If we use failureRedirect, do you recommend using the flash message?
If we don't want to redirect, how should we deal with the error response? ErrorBoundary?
How can we customize the JSON payload in the error response? (conform requires the dedicated format of the JSON response)
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
-
We sometime have to send server errors other than "authentication failed".
However,
authenticate()
can only do either of:throwOnError
)failureRedirect
)https://github.com/sergiodxa/remix-auth/blob/a4ea43d67a76490521daa91f066d0117c8d1517d/src/lib/strategy.ts#L124-L127
There's no way to send 422, 403, 429, or 500.
json({ ... }, 40x)
thrown in the parameter function inFormStrategy
constructor is ignored. The format of the JSON payload is fixed with{message: string}
.failureRedirect
, do you recommend using the flash message?Beta Was this translation helpful? Give feedback.
All reactions