Skip to main content

ResQ.Storage.PinataOptions

PinataOptions.ApiSecret Property

Gets or sets the Pinata API secret for authentication.
public string? ApiSecret { get; set; }

Property Value

System.String
The API secret string, or null if not using API key authentication.

Example

options.ApiKey = Environment.GetEnvironmentVariable("PINATA_API_KEY");
options.ApiSecret = Environment.GetEnvironmentVariable("PINATA_API_SECRET");

Remarks

The API secret must be paired with ApiKey for authentication. This is used as an alternative to JWT tokens. JWT authentication is preferred. Store this value securely and never commit it to source control.