Skip to content

Commit

Permalink
Updated use of API Key -> env
Browse files Browse the repository at this point in the history
  • Loading branch information
gazreese committed Oct 10, 2024
1 parent dbf97f4 commit 79a1afc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FlagsmithClient/Classes/Flagsmith.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class Flagsmith: @unchecked Sendable {
set { sseManager.baseURL = newValue }
}

/// API Key unique to your organization.
/// Environment Key unique to your organization.
///
/// This value must be provided before any request can succeed.
public var apiKey: String? {
Expand Down
2 changes: 1 addition & 1 deletion FlagsmithClient/Classes/Internal/APIManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class APIManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
}
}

/// API Key unique to an organization.
/// Environment Key unique to an organization.
private var _apiKey: String?
var apiKey: String? {
get {
Expand Down
2 changes: 1 addition & 1 deletion FlagsmithClient/Classes/Internal/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ enum Router: Sendable {
///
/// - parameters:
/// - baseUrl: The base URL of the api on which to base the request.
/// - apiKey: The organization key to provide in the request headers.
/// - apiKey: The environment key to provide in the request headers.
/// - encoder: `JSONEncoder` used to encode the request body.
func request(baseUrl: URL,
apiKey: String,
Expand Down
2 changes: 1 addition & 1 deletion FlagsmithClient/Classes/Internal/SSEManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class SSEManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
}
}

/// API Key unique to an organization.
/// Environment Key unique to an organization.
private var _apiKey: String?
var apiKey: String? {
get {
Expand Down

0 comments on commit 79a1afc

Please sign in to comment.