NOTE: This blog post was updated on 14th April 2022 to include an example or registering new users and basing the instructions on the latest version of the NextAuth library - at the time of writing the version being version 4.3.1. Recently I started looking into using NextJS