Skip to content

Commit

Permalink
Modify JWT access level to public
Browse files Browse the repository at this point in the history
Can catch let error as JWT.Error, get correct error localizedDescription
  • Loading branch information
gewill committed Feb 26, 2024
1 parent 7665555 commit ef63e43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/JWT/JWT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protocol JWTCreatable {
func signedToken(using privateKey: JWT.PrivateKey) throws -> JWT.Token
}

struct JWT: Codable, JWTCreatable {
public struct JWT: Codable, JWTCreatable {

public enum Error: Swift.Error, LocalizedError {

Expand All @@ -70,8 +70,8 @@ struct JWT: Codable, JWTCreatable {
}
}

typealias Token = String
typealias PrivateKey = P256.Signing.PrivateKey
public typealias Token = String
public typealias PrivateKey = P256.Signing.PrivateKey

typealias DateProvider = () -> Date
static let defaultDateProvider: DateProvider = {
Expand Down

0 comments on commit ef63e43

Please sign in to comment.