Protect your public APIs
import { verifyKey } from '@unkey/api'; const { result, error } = await verifyKey({ apiId: "api_123", key: "xyz_123" }) if ( error ) { // handle network error } if ( !result.valid ) { // reject unauthorized request }
Was this page helpful?