Skip to content

[BE] Harden creator auth path (rate limit + CORS for FE) #271

Description

@Kaylahray

Description

Rate-limit SEP-10 challenge/verify; allow configured frontend origin so creator app can call API locally/prod.

User Story

As a Maintainer,
I want auth usable from the creator frontend safely,
so that SEP-10 login works without wide-open abuse.

Requirements and Context

  • Files: backend/src/auth/, main.ts, .env.example
  • CORS_ORIGINS; throttle on /auth/*; docs for NEXT_PUBLIC_API_URL

Suggested Implementation

// ThrottlerModule on auth routes
// enableCors({ origin: process.env.CORS_ORIGINS?.split(',') })

Acceptance Criteria

  • Auth rate limited
  • FE origin accepted via env
  • .env.example + README updated

Submission Guidelines

  • Branch: feat/be-creator-auth-cors
  • Depends on: None
  • PR: feat(backend): rate limit auth and CORS for creator FE

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions