AgenticPacks
Setup

Authentication

Learn how sign-in, sessions, and password changes work.

Authentication is Auth.js v5. The session carries the user id, the role, and the plan. The credit balance is not on the session. The UI reads it from Postgres, so a purchase or a chat reply can change the number without waiting for a new login.

This page covers the providers each pack enables, the seed accounts, and the rule for changing a password.

Providers

OSS enables credentials and Google.

Credentials are email and password. After you seed, the demo account is [email protected] with password password123. It starts with 100 credits.

Google reads AUTH_GOOGLE_ID and AUTH_GOOGLE_SECRET. While those are empty, the Google button is not active. The callback URL, once you create a client, is {AUTH_URL}/api/auth/callback/google.

Protected routes

Chat and billing require a session. A request without one does not run. There is no synthetic demo user that skips the credit check. The seed account is a real row in Postgres.

Providers

Pro enables credentials, Google, and Resend magic links.

After you seed, two accounts exist:

Google uses the same callback pattern as OSS. It is optional locally, because the seed accounts already sign in with a password.

Magic links and team invite emails use Resend. Both need RESEND_API_KEY and EMAIL_FROM. Until those are set, password sign-in still works and email delivery does not.

Roles

The admin dashboard is limited to the ADMIN role. Creating a team workspace is limited to an admin, or to a customer whose plan is Team at $99 a month. Hobby ($19) and Plus ($49) do not open that action.

Changing a password

PATCH /api/user/profile looks at whether the account already has a password hash.

When a hash exists, the request includes currentPassword. The current password is checked before the new one is stored. When the account has no hash yet, which is the case after a first Google sign-in, the first password can be set without a current one.

Where to go next

Customer plans and the webhook are covered in Billing.