@humandialog/auth.svelte
Version:
Svelte package to deal with ObjectReef OAuth 2 Identity Provider
21 lines (20 loc) • 1.19 kB
TypeScript
import { Session, App_instance_info } from "./Session";
export declare class reef {
static configure(cfg: any): void;
static fetch(...args: any[]): Promise<Response>;
private static correct_path_with_api_version_if_needed;
static get(_path: any, onError: any): Promise<any>;
static post(_path: any, request_object: any, onError: any): Promise<any>;
static delete(_path: any, onError: any): Promise<any>;
static refreshTokens(_session?: Session | null): Promise<boolean>;
static amIAdmin(): Promise<boolean>;
static redirectToSignIn(): void;
static getAppInstanceInfo(onError: any): Promise<App_instance_info>;
static locationChanged(...args: any[]): void;
}
export declare const _hd_auth_location: import("svelte/store").Readable<any>;
export declare const _hd_auth_querystring: import("svelte/store").Readable<any>;
export declare const _hd_auth_base_address: import("svelte/store").Readable<any>;
export declare const signInHRef: import("svelte/store").Readable<string>;
export declare const signOutHRef: import("svelte/store").Readable<string>;
export declare const signUpHRef: import("svelte/store").Readable<string>;