Authentication
Google OAuth
Google OAuth sign-in setup for shipkit.
Base auth variables
BETTER_AUTH_SECRET=your_generated_secret
BETTER_AUTH_URL=https://shipkit.one
NEXT_PUBLIC_APP_URL=https://shipkit.oneGoogle OAuth setup
- Go to Google Cloud Console and create/select a project.
- Open "APIs & Services" → "OAuth consent screen" and complete the required fields.
- Add Authorized domain:
shipkit.one. - Create an "OAuth client ID" (Web application).
- Set Authorized redirect URI:
https://shipkit.one/api/auth/callback/google
Add to env vars:
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secretReferences:
Verify the flow
- Click "Sign in with Google" on
/login. - Confirm the redirect and session creation.