This is a quick-and-dirty serverless proxy for Zeit's Now platform
composed of two lambdas (one for the haveibeenpwned.com
API and one for the
pwnedpasswords.com
API). It was created as an example of how to leverage the
baseUrl
option in hibp
library if you need to access certain API
endpoints from the browser (as browser User-Agent
's are blocked for some
functions).
Production-ready. 😬 You probably shouldn't use this proxy in production for any kind of real product. Error-handling is essentially non-existent and the response headers (particularly the cache-related ones) probably need some attention.
Note: you must set the
hibp-proxy-ua
secret.