Skip to content

Conversation

@quuu
Copy link
Collaborator

@quuu quuu commented Jun 4, 2025

No description provided.

Copy link
Member

@dvoytenko dvoytenko left a comment

Choose a reason for hiding this comment

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

LGTM, but a bit of bikeshedding.


const authInfo = await verifyToken(req);
const authHeader = req.headers.get("Authorization");
const [_, bearerToken] = authHeader?.split(" ") || [];
Copy link
Member

Choose a reason for hiding this comment

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

Should we check for "Bearer"? Or alternatively we could pass token: {type: string; value: string}?

@quuu quuu merged commit c55c609 into main Jun 4, 2025
1 check passed
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.

3 participants