API reference
API reference
Select your platform
No SDKs available
No versions available

CredentialStorage Class

Extends ScriptableObject
Central, project-wide vault for credentials used by provider assets.
Avoids duplicated API keys, enables autofilling in editors, and reduces accidental key loss when refactoring provider assets.
See also CredentialStorageEditor for editor UX that auto-registers providers.

Member Functions

Attempts to resolve a credential by logical id (for example, "openai.apiKey").
Returns true and sets entry when found; otherwise returns false.
Parameters
providerId
Logical identifier used by provider editors and runtime code.
entry
Resolved secret value, if present and non-empty.
Returns
True if an entry exists with a non-empty value; otherwise false.
Ensures a credential entry exists for the provider.
If missing, creates an empty slot so users can paste the value once. Safe to call repeatedly; the operation is idempotent.
Parameters
providerId
Logical provider id, for example "openai.apiKey".