According to the JWTVerifier source code, only a
[...] UTF8 encoded PEM public key, with a "BEGIN PUBLIC KEY" header is supported. This has lead to confusion (SwissCovid/swisscovid-app-ios#352) since Android allows the use of a x509-Certificate directly.
Either iOS abstracts the public key in a type alias as well, and provides the corresponding constructors, or specifies the format needed here
|
public init(publicKey: Data, jwtTokenHeaderKey: String) { |
Further, the documentation needs to be updated.
According to the JWTVerifier source code, only a
[...] UTF8 encoded PEM public key, with a "BEGIN PUBLIC KEY" headeris supported. This has lead to confusion (SwissCovid/swisscovid-app-ios#352) since Android allows the use of a x509-Certificate directly.Either iOS abstracts the public key in a type alias as well, and provides the corresponding constructors, or specifies the format needed here
dp3t-sdk-ios/Sources/DP3TSDK/utils/JWTVerification.swift
Line 41 in f0f4939
Further, the documentation needs to be updated.