push
github
636 of 960 new or added lines in 30 files covered. (66.25%)
1 existing line in 1 file now uncovered.3943 of 10256 relevant lines covered (38.45%)
14.96 hits per line
1 |
import Domain |
|
2 |
import Foundation |
|
3 |
|
|
4 |
extension JWTCredential: StorableCredential { |
|
NEW
|
public var storingId: String {
|
× |
6 |
jwtString |
× |
7 |
} |
× |
8 |
|
|
NEW
|
public var recoveryId: String {
|
× |
10 |
"jwt+credential"
|
× |
11 |
} |
× |
12 |
|
|
NEW
|
public var credentialData: Data {
|
× |
14 |
(try? JSONEncoder().encode(self)) ?? Data()
|
× |
15 |
} |
× |
16 |
|
|
NEW
|
public var queryIssuer: String? {
|
× |
18 |
issuer |
× |
19 |
} |
× |
20 |
|
|
NEW
|
public var querySubject: String? {
|
× |
22 |
subject |
× |
23 |
} |
× |
24 |
|
|
NEW
|
public var queryCredentialCreated: Date? {
|
× |
26 |
nil |
× |
27 |
} |
× |
28 |
|
|
NEW
|
public var queryCredentialUpdated: Date? {
|
× |
30 |
nil |
× |
31 |
} |
× |
32 |
|
|
NEW
|
public var queryCredentialSchema: String? {
|
× |
34 |
jwtVerifiableCredential.verifiableCredential.credentialSchema?.id |
× |
35 |
} |
× |
36 |
|
|
NEW
|
public var queryValidUntil: Date? {
|
× |
38 |
jwtVerifiableCredential.exp |
× |
39 |
} |
× |
40 |
|
|
NEW
|
public var queryRevoked: Bool? {
|
× |
42 |
nil |
× |
43 |
} |
× |
44 |
|
|
NEW
|
public var queryAvailableClaims: [String] {
|
× |
46 |
claims.map(\.key)
|
× |
47 |
} |
× |
48 |
} |