Skip to content

Commit

Permalink
added issuer Country code (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandr Chernyy <[email protected]>
  • Loading branch information
alexchornyi and pingus-nikalex authored Jun 29, 2021
1 parent 196535e commit 877c185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Models/HCert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public struct HCert {
var body = JSON(parseJSON: bodyStr)
iat = Date(timeIntervalSince1970: Double(body["6"].int ?? 0))
exp = Date(timeIntervalSince1970: Double(body["4"].int ?? 0))
issCode = body["1"].string ?? ""
if body[ClaimKey.hCert.rawValue].exists() {
body = body[ClaimKey.hCert.rawValue]
}
Expand Down Expand Up @@ -262,6 +263,7 @@ public struct HCert {
public var payloadString: String
public var cborData: Data
public var kidStr: String
public var issCode: String
public var header: JSON
public var body: JSON
public var iat: Date
Expand Down

0 comments on commit 877c185

Please sign in to comment.