token-guardian
Version:
A comprehensive solution for protecting and managing API tokens and secrets
30 lines (25 loc) • 541 B
text/typescript
/**
* Interface representing the result of JWT token validation
*/
export interface JWTValidationResult {
/**
* Whether the token is valid
*/
isValid: boolean;
/**
* Error message if validation failed
*/
error?: string;
/**
* Decoded token payload if validation succeeded
*/
payload?: Record<string, unknown>;
/**
* Token expiration timestamp in seconds since epoch
*/
expiresAt?: number;
/**
* Additional metadata about the validation result
*/
metadata?: Record<string, unknown>;
}