Skip to content

Sse #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 15, 2025
Merged

Sse #23

merged 7 commits into from
Feb 15, 2025

Conversation

QuantGeekDev
Copy link
Owner

No description provided.


constructor(config: APIKeyConfig) {
this.config = {
headerName: "X-API-Key",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a constant, instead of a magic string

async authenticate(req: IncomingMessage): Promise<boolean | AuthResult> {
logger.debug(`API Key auth attempt from ${req.socket.remoteAddress}`);

logger.debug(`All request headers: ${JSON.stringify(req.headers, null, 2)}`);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

@QuantGeekDev QuantGeekDev merged commit dc3fee9 into main Feb 15, 2025
@QuantGeekDev QuantGeekDev deleted the sse branch February 15, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant