OpenSourceFellows / amplify-back-end

The API backend for ProgramEquity
https://www.programequity.com/
MIT License
11 stars 0 forks source link

Task: Throw error for /createAddress route if any input is blank (without making api call) #216

Closed teakopp closed 2 years ago

teakopp commented 2 years ago

Problem: Currently, the Lob API will throw an error if user submits blank input to /createAddress route in lob.js. However, it would be more efficient to throw error before verifying address using API.

Task: If a client submits a blank field to /createAddress in lob.js, an error should be thrown before calling lob.usVerifications.verify (so that it mimics /addressVerification route functionality completely).