Skip to main content

Credentials

Credentials are used to configure authentication and configuration connection for integrations.

You may have as many credentials as you need, and each one must have an unique name.

Creating a credential

You can start creating a credential from Credentials page by clicking on the New button, at the top-right of the screen.

Also, if you are editing a process code, you can start creating a new credential by clicking in the Add button, on the Credentials section in the right sidebar.

Then, the credential creation form is opened. A credential must be defined selecting the integration type and filling the required information. In each of the integration pages you have a section called Credential configuration, where you can find how to fill and obtain the needed form data.

Using a credential

Once the credential is defined, you can use them from source code. There are snippet suggestions for every integration and a sample could be:

New snowflake integration from credential
const snowflakeClient = yepcode.integration.snowflake("my-company-snowflake");
note

Currently this integration helper only supports plain strings. Expressions or passing a value by a variable is not supported. Therefore the code of these examples bellow will not work.

let credentialName = "my-company-snowflake";
const snowflakeClient = yepcode.integration.snowflake(credentialName);
const snowflakeClient = yepcode.integration.snowflake(
environment === "production"
? "my-company-snowflake"
: "my-company-snowflake-staging"
);