token-guardian
Version:
A comprehensive solution for protecting and managing API tokens and secrets
18 lines (17 loc) • 468 B
TypeScript
import { RotationResult } from './RotationResult';
/**
* Rotation strategy types
*/
export declare enum RotationStrategyType {
Default = "default",
GitHub = "github",
AWS = "aws"
}
/**
* Base interface for token rotation strategies
*/
export interface RotationStrategy {
rotateToken(tokenName: string, currentToken: string): Promise<RotationResult>;
validateToken(token: string): Promise<boolean>;
isTokenExpired(token: string): boolean;
}