@corti/dictation-web
Version:
Web component for Corti Dictation
14 lines (13 loc) • 430 B
TypeScript
/**
* Decodes a JWT token and extracts environment and tenant information.
*
* @param token - The JWT token to decode
* @returns Object containing environment, tenant, accessToken, and expiresAt
* @throws Error if token format is invalid or cannot be decoded
*/
export declare function decodeToken(token: string): {
accessToken: string;
environment: string;
expiresAt: number | undefined;
tenant: string;
};