How I built LoginWithHN using Ory Hydra
Blog post from Ory
LoginWithHN.com (LWHN) is an unofficial OAuth2 and OpenID Connect provider tailored for the HackerNews community, aiming to simplify the login process for developers who want to engage with this tech-savvy audience. The project, powered by Ory Hydra, offers an innovative authentication flow by allowing users to verify their HackerNews profile through a unique code or phrase, which they must display publicly on their profile page. Initially, the integration of node-oidc-provider with NestJS proved challenging, prompting a switch to Ory Hydra for its ease of use and comprehensive documentation. The system is designed to accommodate future expansions, such as karma restrictions and YC founder verification, while already providing a functional OAuth2 server and client setup. This initiative not only enhances user convenience but also maintains security, making it a valuable tool for developers targeting the HackerNews community.