testAuthenticaiton
Tests authentication with the current PINATA_JWT
Usage
Copy
import { PinataSDK } from "pinata";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const auth = await pinata.testAuthentication()
Returns
Copy
type AuthTestResponse = {
message: string;
};
Assistant
Responses are generated using AI and may contain mistakes.