Skip to content

Commit 4d2d050

Browse files
committed
Adjusting the code and updating to the latest swift packages
1 parent b2f66b9 commit 4d2d050

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/OAuth2/OAuth2Error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public struct OAuth2Error: Error {
2424
}
2525

2626
/// Convenience initializer from JSON
27-
init?(json: [String: Any]) {
27+
public init?(json: [String: Any]) {
2828
guard let errorCode = json["error"] as? String,
2929
let code = OAuth2ErrorCode(rawValue: errorCode) else {
3030
return nil

Sources/OAuth2/makeRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extension OAuth2 {
2323
/// - body: The JSON formatted sring to sent to the server
2424
/// Response:
2525
/// (HTTPResponseStatus, "data" - [String:Any], "raw response" - [String:Any], HTTPHeaderParser)
26-
func makeRequest(
26+
open func makeRequest(
2727
_ method: HTTPMethod,
2828
_ url: String,
2929
body: String = "",

0 commit comments

Comments
 (0)