Added support for an API key to the AuthMiddleware middleware in the library target. (#4)

This PR contains the work done to extend the implementation of the `AuthMiddleware` middleware to handle an API key as well as private and public keys.

Reviewed-on: #4
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #4.
This commit is contained in:
javier authored and Javier Cicchelli committed 2025-10-04 17:10:17 +00:00
1 parent ce0ec02c03
commit f4065e62e4
5 files changed
+163 -51

No files matched your search

@@ -13,6 +13,8 @@
extension String {
/// A namespace assigned for Marvel API key samples.
enum Key {
/// A Marvel API key sample.
static let api = "SomeAPIKey"
/// A Marvel API private key sample.
static let `private` = "SomePrivateKey"
/// A Marvel API public key sample.