Secret
class Secret
A secret value (e.g., a credential for an external service), belonging to a user or organization.
Constructors
Method
Description
User.secret(name)
Return a Secret of a user.
Organization.secret(name)
Return a Secret of an organization.
Examples
const secret = redivis.user('jane').secret('my_api_key');
const value = await secret.getValue();Attributes
Name
Description
name
The secret's name.
user
The User that the secret belongs to, if any.
organization
The Organization that the secret belongs to, if any.
Methods
Method
Description
Return the secret's value.
Was this helpful?

