@d-id/client-sdk
Version:
d-id client sdk
21 lines (20 loc) • 454 B
TypeScript
export interface BearerToken {
type: 'bearer';
token: string;
}
export interface BasicAuth {
type: 'basic';
username: string;
password: string;
}
export interface ClientKeyAuth {
type: 'key';
clientKey: string;
}
export type Auth = BearerToken | BasicAuth | ClientKeyAuth;
export interface GetAuthParams {
token?: string | null;
username?: string | null;
password?: string | null;
clientKey?: string | null;
}