apiKey(...) when you want a simple shared-secret header on HTTP requests.
Basic example
Multiple valid keys
Custom validation
Advanced
UsecontextKey only if you want the validated key stored somewhere other than ctx.apiKey.
Protect a Redop HTTP server with the built-in apiKey plugin.
apiKey(...) when you want a simple shared-secret header on HTTP requests.
contextKey only if you want the validated key stored somewhere other than ctx.apiKey.