@sethub/sdk
Version:
<div align="center"> <h1> SetHub SDK </h1>
25 lines (24 loc) • 835 B
TypeScript
import type { SetHubProtocols } from '../../../common/types/common';
import type { HttpClientProtocols } from '../../../http/protocols/client.protocols';
import type { Authentication } from './authentication';
type SignInWithEmailAndPasswordFailure = {
code: 'internal';
message: string;
};
export declare namespace SignInWithEmailAndPassword {
type Input = {
email: string;
password: string;
};
type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>;
type APIResponse = {
access_token: string;
refresh_token: string;
};
type Success = Authentication;
type ErrorCodes = 'internal';
type Failure = SignInWithEmailAndPasswordFailure;
type Output = APIResponse | Failure;
type Response = SetHubProtocols.Response<Success, Failure>;
}
export {};