Get Authentication Info
client.auth.retrieveInfo(RequestOptionsoptions?): AuthRetrieveInfoResponse { apiKey, type }
GET/auth/info
Get Authentication Info
import TigerCloud from 'tiger-cloud';
const client = new TigerCloud({
apiKey: process.env['TIGER_CLOUD_API_KEY'], // This is the default and can be omitted
});
const response = await client.auth.retrieveInfo();
console.log(response.apiKey);{
"apiKey": {
"created": "2024-01-15T10:30:00Z",
"issuing_user": {
"id": "user123",
"email": "john.doe@example.com",
"name": "John Doe"
},
"name": "my-production-token",
"project": {
"id": "rp1pz7uyae",
"name": "My Production Project",
"plan_type": "FREE"
},
"public_key": "tskey_abc123"
},
"type": "apiKey"
}Returns Examples
{
"apiKey": {
"created": "2024-01-15T10:30:00Z",
"issuing_user": {
"id": "user123",
"email": "john.doe@example.com",
"name": "John Doe"
},
"name": "my-production-token",
"project": {
"id": "rp1pz7uyae",
"name": "My Production Project",
"plan_type": "FREE"
},
"public_key": "tskey_abc123"
},
"type": "apiKey"
}