Skip to content

Validate OAuth state parameter on Google login callback #1159

Description

@RUKAYAT-CODER

Background

The Google OAuth callback does not verify the state nonce, allowing login CSRF. Generate and validate a state value.

Files to modify (2-3)

src/lib/google/oauth.ts
src/middleware/security.ts

Acceptance Criteria

Implemented across the listed files

Unit/integration tests added or updated and passing

No regression; follows project coding standards

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions