Published:

.NET 5.0 API - JWT Authentication with Refresh Tokens

How to implement JWT authentication with Refresh Tokens in a .NET 5.0 API. Includes example client app built with Angular.
Published:

.NET 5.0 - Automatic Entity Framework Migrations to SQL Database on Startup

A super quick example of how to automatically migrate database changes from code in .NET 5.0 using Entity Framework in the Startup.cs file.
Published:

.NET 5.0 - Entity Framework Migrations for Multiple Databases (SQLite and SQL Server)

An example of how to setup a .NET 5.0 project with Entity Framework Migrations that supports multiple different database providers.
Published:

.NET 5.0 - Create and Validate JWT Tokens + Use Custom JWT Middleware

This is a quick example of how to create and validate JWT tokens in .NET 5.0. We'll also cover how to implement custom JWT authentication using custom JWT middleware and a custom authorize attribute.
Published:

Next.js - NavLink Component Example with Active CSS Class

This is a quick post to show how to create a custom NavLink component in Next.js that extends the built-in Link component to add the CSS className "active" when the href attribute matches the current URL.
Published:

Next.js - Make the Link component work like React Router Link

How to create a custom Link component that wraps the built-in Next.js link component to make it work more like the standard link component from React Router.
Published:

AWS - Create a VPC with Public and Private Subnets and a NAT Gateway

How to create an AWS VPC with public and private subnets and enable outbound internet access from the private subnets through a NAT Gateway.
Published:

.NET 5.0 - Global Error Handler Tutorial

This is a quick post to show how to implement a global exception handler in .NET 5.0.
Published:

.NET 5.0 - Hash and Verify Passwords with BCrypt

This is a quick example of how to hash and verify passwords in .NET 5.0 using the BCrypt.Net-Next password hashing library, a C# implementation of the bcrypt password hashing function.
Published:

.NET 5.0 API - Allow CORS requests from any origin and with credentials

This is a quick post to show how to configure a .NET 5.0 API to allow CORS requests from any origin as well as with credentials.