Skip to content

Homebrew JWTDecoder doesn't check integrity of JWT #26

@jonigkeit

Description

@jonigkeit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions