Skip to content

Commit 2ac59c8

Browse files
docs: Add detailed documentation to verifyApiKey function
Co-Authored-By: [email protected] <[email protected]>
1 parent 05e9f15 commit 2ac59c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/sourcemaps/upload.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ func runE(client resources.Client) func(cmd *cobra.Command, args []string) error
182182
}
183183
}
184184

185+
// verifyApiKey queries the LaunchDarkly Observability API to verify credentials and retrieve the Highlight API key.
186+
// It takes the LaunchDarkly account ID, project ID, and backend URL as input.
187+
// Returns:
188+
// - string: The Highlight API key used for sourcemap uploads
189+
// - string: The LaunchDarkly project ID that was verified
190+
// - error: Any error that occurred during verification
185191
func verifyApiKey(accountID, projectID, backendUrl string) (string, string, error) {
186192
variables := map[string]string{
187193
"ld_account_id": accountID,

0 commit comments

Comments
 (0)