Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Secret

class Secret

A secret value (e.g., a credential for an external service), belonging to a user or organization.

Constructors

Method
Description

Return a Secret of a user.

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?