1. 2
    Set up GitHub OAuth for a Next.js 13 Application
    3m 26s

Set up GitHub OAuth for a Next.js 13 Application

InstructorBen Patton

Share this video with your friends

Send Tweet

First thing we'll do is navigate to Github's Developer Settings to register a new OAuth application.

Here we will set the app name, url, and callback url both for the development environment.

We will copy the Client ID and generate secrets and set them in our .env.

Finally we'll generate a NEXTAUTH_SECRET with the openssl cli tool to generate a random, secure string.