The repo shows how to implement CMU OAuth (sign-in with CMU Account) in your own web app using Next.js + TypeScript. We get CMU basic info (like student name, student id,..) after signing in then we use this information to create our own session.
- Run npm install in your terminal.
- Update the .env file. Copy your CLIENT ID and CLIENT SECRET to the .env.
- Update NEXT_PUBLIC_CMU_OAUTH_URL variable in the .env
- Run npm run dev
This repo include .env file to kickstart required variables for you. But in practice, you should not include .env in repository at all!