@yash101/schwab-api-client
Version:
A TypeScript client library for interacting with the Charles Schwab Brokerage APIs.
30 lines • 578 B
TypeScript
export interface IDTokenJwtData {
type: string;
alg: string;
}
export interface IDTokenPayload {
iss: string;
sub: string;
aud: string;
exp: Date;
iat: Date;
jti: string;
}
export interface IDToken {
header: IDTokenJwtData;
payload: IDTokenPayload;
signature: Buffer;
}
/**
*
* @param token - The ID token to decode
*/
export declare function decodeIdToken(jwtBuffer: Buffer): {
header: {
type: any;
alg: any;
};
payload: any;
signature: Buffer<ArrayBuffer>;
};
//# sourceMappingURL=idtoken.d.ts.map