CreateApiKeyResponseDTO
Package: @nauth-toolkit/core
Type: DTO (Response)
Returned once when a key is created. The plaintext key is shown only here.
- NestJS
- Express
- Fastify
import { CreateApiKeyResponseDTO } from '@nauth-toolkit/nestjs';
import { CreateApiKeyResponseDTO } from '@nauth-toolkit/core';
import { CreateApiKeyResponseDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description with validation inline |
|---|---|---|---|
key | string | Yes | Full plaintext API key (shown once; store securely). |
apiKey | ApiKeyResponseDTO | Yes | Sanitized metadata for the created key. |
Example
{
"key": "Zdh-wUDorVIDtYEiW2q1fT5m9jdXxss-cmyZbIZ73Qg",
"apiKey": { "keyId": "550e8400-...", "isActive": true }
}