All documentation
Authentication

testAuth Function in JavaScript

Verify that your PulseGrid JavaScript keys are valid.

JavaScript

Overview

testAuth() checks whether the configured PulseGrid key pair is valid for the current project.

Setup

Call it after creating the PulseGrid client.

Code example

testAuth Function in JavaScript
const result = await pulsegrid.testAuth();
console.log(result);

Notes

Useful during backend setup, diagnostics, and health checks.