OAuth 2.0 handles authorization (who can do what), OpenID Connect adds authentication (who are you) on top. Together they form the backbone of modern login systems like „Sign in with Google“. This article breaks down how it all fits together, which grant types exist, what JWTs are, and how to implement it all in TypeScript/NestJS.
Why Authentication Is Hard
Be honest: have you ever thought ab…