UNPKG

@permitio/permit-js

Version:

Permitio is a frontend package that makes it easy to use permit abilities

14 lines (13 loc) 698 B
import { ApproveInterface, LoginInterface } from './types'; export declare class PermitElements { config?: RequestInit; isConnected: boolean; me?: any; isDev: boolean; constructor(); loginWithAjax: ({ loginUrl, loginMethod, tenant, token, headers, userJwt, userKeyClaim, }: LoginInterface) => Promise<any>; login: ({ loginUrl, loginMethod, tenant, token, headers, userJwt, envId, elementIframeUrl, userKeyClaim, permitApiUrl, }: LoginInterface) => Promise<boolean>; approve: ({ inviteCode, email, token, envId, user_key_claim, attributes }: ApproveInterface) => Promise<unknown>; logout: (logoutCustomUrl?: string) => Promise<boolean>; help: () => string; }