@d-id/client-sdk
Version:
d-id client sdk
24 lines (23 loc) • 496 B
TypeScript
export interface BearerToken {
type: 'bearer';
token: string;
}
export type BasicAuth = {
type: 'basic';
token: string;
} | {
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;
}