jeremyevans / rodauth

Ruby's Most Advanced Authentication Framework
http://rodauth.jeremyevans.net
MIT License
1.67k stars 95 forks source link

Show adding error reason to the JSON response #305

Closed janko closed 1 year ago

janko commented 1 year ago

This shows how the JSON response can be modified in general, which I believe isn't currently mentioned in the docs. It also makes error reasons functionality easier to discover; they're currently only mentioned in base feature docs, but they'll most likely be used for JSON APIs anyway, so I think it's useful to mention them there 🙂

jeremyevans commented 1 year ago

Looks good, thanks for the patch!