Skip to content

Validate OAuth state parameter on Discord login callback #1157

Description

@RUKAYAT-CODER

Background

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

Files to modify (2-3)

src/lib/discord/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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions