AmyVerse

Setting up Auth.js | Beginner Tutorial

August 17, 2025
1 minute read
31 views

This blog will teach you how to setup Auth.js in quick and most simplest way. From making all the files and importing to setting up Environmental variables.

Setting up Auth.js | Beginner Tutorial

What is Auth.js?

Formerly known as: NextAuth.js A free and open source authentication solution for the Web made by Vercel primarily for Next.js (till v4) then opened for everyone and all framework.

Why Auth.js?

It is free. It gives us full freedom to implement our personal way of authentication. Whether you want to do OAuth (third party apps like Google, GitHub, etc. or Credentials or Magic Links (live email for login) No vendor lock-in.

Let's Start

Step 1: Installing Auth.js and Setting it Up:

Open your IDE (VS Code) and start a project (ignore if already done).

npm create-next-app@latest myauth

...to be continued

Share this article

Help others discover this content