Data
testAuthenticaiton
Data
testAuthenticaiton
Tests authentication with the current PINATA_JWT
Usage
import { PinataSDK } from "pinata-web3";
const pinata = new PinataSDK({
pinataJwt: process.env.PINATA_JWT!,
pinataGateway: "example-gateway.mypinata.cloud",
});
const auth = await pinata.testAuthentication()
Returns
type AuthTestResponse = {
message: string;
};