Authentication, organizations, roles, and sessions powered by WorkOS. This is the starter-saas-workos pack.
RESEND_API_KEY.In your WorkOS dashboard, grab:
WORKOS_CLIENT_ID)WORKOS_API_KEY)WORKOS_COOKIE_PASSWORD). Generate one with openssl rand -base64 32.Put these in apps/backend/.env.
Enable Google under Authentication > Google in your WorkOS dashboard. WorkOS gives you the redirect URL to paste into Google; you don't manage the Google app directly.
The pack starts Google sign-in from GET /auth/google/:intent and passes this redirect URI to WorkOS:
http://localhost:3000/auth/google/callback
Register that exact URL in WorkOS > Dashboard > Redirects. In production, swap the origin for your deployed domain:
https://yourdomain.com/auth/google/callback
| Variable | Purpose |
|---|---|
WORKOS_CLIENT_ID | WorkOS project client ID |
WORKOS_API_KEY | WorkOS server API key |
WORKOS_COOKIE_PASSWORD | Session cookie encryption key (min 32 chars) |
WORKOS_GOOGLE_OAUTH_CALLBACK | Google OAuth redirect URI (see above) |
RESEND_API_KEY | Transactional email (password reset, invites) |