Getting Started
This guide will walk you through installing @rttnd/gau
and setting it up for the first time.
-
Install the package
Section titled “Install the package”Terminal window npm i @rttnd/gauTerminal window pnpm add @rttnd/gauTerminal window yarn add @rttnd/gauTerminal window bun add @rttnd/gauTerminal window ni @rttnd/gau -
Set up environment variables
Section titled “Set up environment variables”gau
usesAUTH_SECRET
for signing JWTs. You can generate a secure secret using the CLI:Terminal window npx gau secretTerminal window pnpm dlx gau secretTerminal window yarn dlx gau secretTerminal window bunx gau secretTerminal window nlx gau secretThen, add the output and your provider credentials to your
.env
file:.env AUTH_SECRET="your-generated-secret"GITHUB_CLIENT_ID="your-github-client-id"GITHUB_CLIENT_SECRET="your-github-client-secret" -
Choose your database adapter
Section titled “Choose your database adapter”gau
uses a database adapter to connect to your database. -
Choose your integration
Section titled “Choose your integration” -
Add OAuth Providers
Section titled “Add OAuth Providers”