dataforseo-mcp-server
Version:
CLI and MCP server for DataForSEO API — browse documentation and make authenticated API requests
8 lines (7 loc) • 414 B
TypeScript
/**
* Extracts the expiration instant from a Bearer JWT *without* verifying its
* signature. We never trust this token — DataForSEO remains the authoritative
* validator — we only peek at `exp` to detect an honestly expired token and
* turn it into a 401 + WWW-Authenticate challenge so the MCP client refreshes.
*/
export declare function getTokenExpiration(authHeader: string | undefined): Date | null;