@sberid/js-sdk
Version:
Javascript SDK для партнеров Сбер ID, упрощающая подключение SberbankID на сайте.
39 lines (33 loc) • 788 B
text/typescript
export declare interface AnyObject {
[key: string]: any;
}
export declare interface CssObject {
[property: string]: number | string;
}
export interface OidcParams {
response_type: string;
client_type: string;
client_id: string;
state: string;
redirect_uri: string;
scope: string;
nonce: string;
[key: string]: string;
}
export interface Deeplink {
enable: boolean;
mode: string;
allowSberIDRedirects: Array<string>;
}
export interface User {
firstname?: string;
partname?: string;
surname?: string;
}
export type FetchProps = {
method?: 'GET' | 'POST';
credentials?: 'include' | 'omit';
body?: string;
headers?: Record<string, string>;
signal?: AbortSignal;
};