📄️ initKeyManager
@niveth/key-manager exports only one function that is initKeyManager. initKeyManager returns an object with keys
📄️ createUserAPIKey
It creates a User API Key which can be give to users of your api. That key must be sent along while making requests to your api.
📄️ verfiyUserAPIKey
Use this to verify whether provided User API Key is valid and that it has not exceeded ratelimit.
📄️ rotateUserAPIKey
Use this to rotate a User API Key. Rotating a key will create a new key with same id and roles
📄️ deleteUserAPIKey
Use this to delete a User API Key
📄️ addRoles
Use this to add roles to a User API Key
📄️ removeRoles
Use this to remove roles from a User API Key