Skip to content

Commit

Permalink
Merge pull request #20 from kuldar-daniel/fix/kbjwt-public-access-con…
Browse files Browse the repository at this point in the history
…trol

Public access control: expose KBJWT initialiser
  • Loading branch information
dtsiflit authored May 13, 2024
2 parents b2ec81b + bc3612f commit 8f72af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Issuer/JWT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct JWT: JWTRepresentable {

// MARK: - Lifecycle

init(header: JWSHeader, payload: JSON) throws {
public init(header: JWSHeader, payload: JSON) throws {
guard header.algorithm?.rawValue != Keys.none.rawValue else {
throw SDJWTError.noneAsAlgorithm
}
Expand All @@ -39,7 +39,7 @@ public struct JWT: JWTRepresentable {
self.payload = payload
}

init(header: JWSHeader, kbJwtPayload: JSON) throws {
public init(header: JWSHeader, kbJwtPayload: JSON) throws {
guard header.algorithm?.rawValue != Keys.none.rawValue else {
throw SDJWTError.noneAsAlgorithm
}
Expand Down

0 comments on commit 8f72af2

Please sign in to comment.