@smash-sdk/iam
Version:
24 lines (23 loc) • 453 B
TypeScript
export interface DecodeTokenInput {
token: string;
}
export interface DecodeTokenOutput {
id: string;
username?: string;
region: string;
ip: string;
scope?: "None" | "IP";
account: string;
issuedAt: string;
expiration: string;
}
export interface TokenData {
id: string;
username?: string;
region: string;
ip: string;
account: string;
scope?: "None" | "IP";
iat: number;
exp: number;
}