Record Login
Guides user through authentication recording process.
Steps
- •
Ask for:
- •Site name
- •Login URL
- •Preferred auth mode (storage or profile)
- •
Explain process:
codeI'll run the auth command which will: 1. Open a browser window 2. Navigate to {URL} 3. Wait for you to login manually 4. Save authentication to .secrets/ - •
Run command:
bashcd apps/cli pnpm dev auth {SITE} --url {URL} [--profile] - •
After completion, verify file created:
- •Storage mode:
.secrets/{site}.storageState.json - •Profile mode:
.secrets/profiles/{site}/
- •Storage mode:
- •
Test authentication:
bashpnpm dev run --site {SITE} --dry-run --max-threads 1 - •
If test fails, troubleshoot:
- •Check if login was successful
- •Verify site doesn't require 2FA re-auth
- •Try profile mode if storage mode failed