> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# testAuthenticaiton

Tests authentication with the current `PINATA_JWT`

## Usage

```typescript theme={null}
import { PinataSDK } from "pinata";

const pinata = new PinataSDK({
  pinataJwt: process.env.PINATA_JWT!,
  pinataGateway: "example-gateway.mypinata.cloud",
});

const auth = await pinata.testAuthentication()
```

## Returns

```typescript theme={null}
type AuthTestResponse = {
  message: string;
};
```
