UNPKG

@authduo/authduo

Version:

Free User-sovereign Authentication for the World

18 lines (17 loc) 567 B
import { AuthFile } from "./types.js"; import { Login } from "./utils/login.js"; import { LoginTokens } from "../auth/tokens/types.js"; export declare class Auth { #private; static defaultUrl: string; static version: number; static get(): Auth; onChange: import("@benev/slate").Pubsub<[Login | null]>; constructor(); get authfile(): AuthFile; load(): Promise<Login | null>; save(tokens: LoginTokens | null): void; get login(): Login | null; set login(login: Login | null); popup(url?: string): Promise<Login | null>; }