Skip to main content

ResQ.Storage.PinataOptions

PinataOptions.JwtToken Property

Gets or sets the Pinata JWT token for authentication.
public string? JwtToken { get; set; }

Property Value

System.String
The JWT token string, or null if not using JWT authentication.

Example

options.JwtToken = Environment.GetEnvironmentVariable("PINATA_JWT");

Remarks

JWT authentication is the preferred method and provides full API access. Generate a JWT token from your Pinata account dashboard. When provided, this takes precedence over API key/secret authentication. Store this value securely (e.g., in environment variables) and never commit it to source control.