Creating and validating JWTs with public/private keys (JSON Web Key Set, JWKS)

This article discusses an implementation of JWT generation in Go, and validation in Go and Typescript. The library used for this, jose, has implementations for many other programming languages, so the principles can be applied in nearly all commonly used programming languages. JSON Web Token 1 (JWT for short) is a very commonly used way to create and validate authentication tokens on the web. This…