@kintone/rest-api-client
Version:
Kintone REST API client for JavaScript
23 lines (22 loc) • 467 B
TypeScript
type ApiTokenAuth = {
type: "apiToken";
apiToken: string | string[];
};
type PasswordAuth = {
type: "password";
username: string;
password: string;
};
type SessionAuth = {
type: "session";
};
type OAuthTokenAuth = {
type: "oAuthToken";
oAuthToken: string;
};
export type DiscriminatedAuth = ApiTokenAuth | PasswordAuth | SessionAuth | OAuthTokenAuth;
export type BasicAuth = {
username: string;
password: string;
};
export {};