Category: TypeScript

JavaScript NestJS TypeScript

API with NestJS #42. Authenticating users with Google

This entry is part 41 of 42 in the API with NestJS

Authenticating users with emails and passwords is a valid and common approach. However, a convenient alternative is to shift this responsibility to a third party. In this article, we look into adding Google authentication to a NestJS project. We can achieve the above because Google uses the OAuth (Open Authorization) framework. With it, Google users […]

JavaScript NestJS TypeScript

API with NestJS #38. Setting up recurring payments via subscriptions with Stripe

This entry is part 38 of 42 in the API with NestJS

In this series, we’ve implemented a few different ways of charging our users using Stripe. So far, all of those cases have included single payments. With Stripe, we can also set up recurring payments using subscriptions. Recurring payments are a popular approach nowadays in many businesses. The users save a credit card and get billed […]

JavaScript NestJS TypeScript

API with NestJS #36. Introduction to Stripe with React

This entry is part 36 of 42 in the API with NestJS

Nowadays, a lot of web applications accept online payments. Although this is not straightforward to implement, there are some ready-to-use solutions that we can take advantage of. In this article, we look into Stripe. It serves as a payment processing platform that does the heavy lifting for us. To implement it, we use NestJS and […]