Simplify Secrets module — get rid of protocol. Just reference SecretKey properties as static.

This commit is contained in:
Brent Simmons
2025-01-06 21:02:03 -08:00
parent 1eacebe546
commit 45cd018020
19 changed files with 64 additions and 95 deletions

View File

@@ -38,8 +38,8 @@ class ArticleExtractor {
self.articleLink = articleLink
let clientURL = "https://extract.feedbin.com/parser"
let username = SecretsManager.provider.mercuryClientId
let signature = articleLink.hmacUsingSHA1(key: SecretsManager.provider.mercuryClientSecret)
let username = SecretKey.mercuryClientID
let signature = articleLink.hmacUsingSHA1(key: SecretKey.mercuryClientSecret)
if let base64URL = articleLink.data(using: .utf8)?.base64EncodedString() {
let fullURL = "\(clientURL)/\(username)/\(signature)?base64_url=\(base64URL)"