Customer Portal POC

Acme Corp

SCMJCOSE
April 22, 2026
SC
Sarah Chen10:23 AM
Hey team, I'm starting on the customer portal POC. can you help me scaffold a Next.js app with authentication?
CO
Coding AgentAgent10:24 AM
I'll set up a Next.js 14 application with NextAuth.js for authentication. I've created the initial repository:
acme-corp/customer-portal-pocActive

Customer portal POC with Next.js and NextAuth

mainInitial scaffold with auth
CO
Coding AgentAgent10:24 AM
Here's the auth configuration:
auth.config.ts
{
  "providers": [
    "Google",
    "GitHub",
    "Credentials"
  ],
  "session": {
    "strategy": "jwt",
    "maxAge": 2592000
  },
  "callbacks": [
    "signIn",
    "redirect",
    "session",
    "jwt"
  ],
  "pages": {
    "signIn": "/login",
    "error": "/auth/error"
  }
}
MJ
Marcus Johnson10:31 AM
Nice! can you review the auth setup and make sure it follows our security standards?
SE
Security AgentAgent10:32 AM
I've reviewed the authentication configuration. Found 2 items that need attention: 1. CSRF Protection — Enabled by default in NextAuth, but we should explicitly configure the token. 2. Rate Limiting — Not yet implemented. Recommend adding rate limiting to the login endpoint. I've created a ServiceNow ticket for tracking:
SEC-2024-0847high

Implement rate limiting for customer portal auth

openSecurity TeamToday, 10:32 AM
SC
Sarah Chen10:45 AM
Great catch! can you implement the rate limiting fix?
CO
Coding AgentAgent10:47 AM
I've implemented rate limiting using Upstash Redis. Here's the PR:
Add rate limiting to authentication endpointsopen

#12 in acme-corp/customer-portal-poc

by coding-agent+145-12
MJ
Marcus Johnson10:52 AM
Perfect! Can we get a preview deployment to show stakeholders?
CO
Coding AgentAgent10:53 AM
Done. Preview environment is live:
Deployed 30 seconds ago
SC
Sarah Chen11:05 AM
This is looking great. once you approve the PR, we can merge and deploy to production. Team, we're ahead of schedule.
Enter to send