@longears-mobile/rcs-sdk
Version:
Provider-agnostic SDK for RCS (Rich Communication Services) messaging
18 lines • 449 B
TypeScript
export interface AuthProvider {
type: 'custom';
authenticate(): Promise<AuthToken>;
refresh(): Promise<AuthToken>;
isValid(): boolean;
revoke?(): Promise<void>;
}
export interface AuthToken {
token: string;
type?: 'Bearer' | 'Basic' | 'Custom';
expiresAt?: Date;
refreshToken?: string;
}
export interface AuthOptions {
autoRefresh?: boolean;
refreshThreshold?: number;
}
//# sourceMappingURL=auth.d.ts.map