ApiKey
Class representing an API key for a User. An API key can be used to represent a user when logging in instead of using email and password. Note that the value of a key will only be available immediately after the key is created, after which point it is not visible anymore. This means that keys returned by ApiKeyAuth.fetch and ApiKeyAuth.fetchAll will have a null
value. Anyone creating an API key is responsible for storing it safely after that.
Parameters
id
an BsonObjectId uniquely identifying the key.
value
the value of this key, only returned when the key is created, null
otherwise.
name
the name of the key.
enabled
whether the key is enabled or not.