thingco / shared-frontend-libs

0 stars 0 forks source link

[FEAT] - authentication validation errors #79

Closed DanCouper closed 2 years ago

DanCouper commented 3 years ago

Which package is this related to?

Specify the package, or if it is a new package suggest a name.

If this covers multiple packages, if possible open an issue for both and PR separately: this will keep the PR's scope as small as possible (plus each package needs separate version bumps & republishing after the fix has been applied).

Is your feature request related to a problem? Please describe. The error codes need to be cleaned up to be more expressive. Validation logic also needs to be added at a hook level: for example, for email input, check the input value and return early before the network call should the validation fail.