iam-client-lib
Version:
Library for Decentralized Identity and Access Management
23 lines (22 loc) • 538 B
TypeScript
import { AxiosResponse } from 'axios';
export type SiweOptions = {
/**
* host name of the service requesting signing
* */
domain: string;
/**
* base Url of the subject of the signing
* */
baseUrl?: string;
};
export declare const DEFAULT_AUTH_STATUS_PATH = "/auth/status";
export interface AuthTokens {
token: string;
refreshToken: string;
}
export interface ILogin {
login(): Promise<void>;
}
export interface IAuthTokensClient {
getAuthTokens(): Promise<AxiosResponse<AuthTokens>>;
}