Skip to content

Commit 2c3fcce

Browse files
fix: Makes TokenInitPayload init public
1 parent e0f2a9e commit 2c3fcce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/GraphQLTransportWS/InitPayloads.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ public struct EmptyInitPayload: Equatable & Codable { }
55

66
/// `connection_init` `payload` that includes an `authToken` field
77
public struct TokenInitPayload: Equatable & Codable {
8-
let authToken: String
8+
public let authToken: String
9+
10+
public init(authToken: String) {
11+
self.authToken = authToken
12+
}
913
}

0 commit comments

Comments
 (0)