Skip to content
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

fix: spec compliant token verification #501

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

debdutdeb
Copy link

No description provided.

Signed-off-by: Debdut Chakraborty <[email protected]>
@debdutdeb debdutdeb requested a review from a team as a code owner June 30, 2024 23:37
@debdutdeb debdutdeb force-pushed the spec-compliant-token-checking branch from 1334c64 to 4730173 Compare June 30, 2024 23:37
Copy link
Contributor

@tadzik tadzik left a comment

Choose a reason for hiding this comment

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

LGTM aside of the vi marker

@@ -1740,3 +1750,5 @@ async function loadDatabase<T extends BridgeStore>(path: string, Cls: new (db: D
throw Error('nedb could not be imported. You will need to add this package as a peer dependency.');
}
}

// vi: et sw=4 ts=4
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like an accidental leftover


const tokenFromQuery = req.query.access_token;

const tokenFromHeader = req.get("authorization").substring(7); // "Bearer ".length === 7
Copy link
Contributor

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 "?

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