Skip to content

Conversation

@SukitOwl
Copy link
Contributor

@SukitOwl SukitOwl commented Jul 8, 2020

No description provided.

const auto header = json::parse(str_header);
if (header["typ"] != jwt) {
log::warning(c_fost)("", "JWT type mismatch")("typ", header["typ"]);
return fostlib::null;
Copy link
Member

Choose a reason for hiding this comment

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

Can we leave the warning, but just remove the early return? I think it's clear it's meant to be there and I'd rather the code looks like it's not missed something

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants