CroctCredentials

Learn how to type the Croct credentials.

This type describes the credentials a CredentialsResolver returns for a request.

Definition

This type has the following shape:

type CroctCredentials = {  appId: string,  apiKey: string,};

The appId is the application ID, which reaches the browser to bootstrap the client-side SDK. The apiKey is the API key, which stays on the server to authenticate server-side requests.