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

Homebrew JWTDecoder doesn't check integrity of JWT #26

Open
jonigkeit opened this issue May 19, 2023 · 0 comments
Open

Homebrew JWTDecoder doesn't check integrity of JWT #26

jonigkeit opened this issue May 19, 2023 · 0 comments

Comments

@jonigkeit
Copy link

https://github.com/trifork/TIM-iOS/blob/main/Sources/TIM/Helpers/JWTDecoder.swift#L4-L7

static func decode(jwtToken jwt: String) -> [String: Any] {
        let segments = jwt.components(separatedBy: ".")
        return segments.count > 2 ? decodeJWTPart(segments[1]) : [:]
}

Does not check the integrity of the JWT.

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

No branches or pull requests

1 participant