UNPKG

@dataswift/hat-js

Version:

HAT JavaScript SDK for web and Node.js

12 lines (11 loc) 557 B
import { HttpService } from '../services/HttpService'; import { State } from '../state'; export interface HatAuth { generateHatLoginUrl: (hatDomain: string, application: string, redirect: string, fallback: string) => string; isDomainRegistered: (hatUrl: string) => Promise<boolean>; signOut: () => void; getHatDomain: () => string; getToken: () => string | undefined; isTokenExpired: (token: string) => boolean; } export declare const authentication: (state: State, headers: Record<string, string>, httpSvc: HttpService) => HatAuth;