API Reference
Functions
GraphqlApiHandler
This function handles GraphQL API requests to a Macive API. It uses the getMaciveApiHeaders function to retrieve necessary headers for the request.
getMaciveApiHeaders
Retrieves headers for Macive API requests based on the provided Next.js API request and response objects. It includes logic for handling cookies, generating random strings, and extracting subdomains.
generateRandomString
Generates a random alphanumeric string with the specified length.
getIpGeoDetails
Retrieves geographic details for the provided IP address using an IP geolocation API. It includes a default data object in case of errors or missing data.
🤝 Contributing
Contributions to improve this package are welcome. Please adhere to the project's coding standards and commit guidelines.