bento-auth-js
Version:
Authentication library for web applications of Bento-Platform
10 lines (9 loc) • 672 B
TypeScript
import type { JWTPayload } from "jose";
export declare const LS_OPENID_CONFIG_KEY = "BENTO_OPENID_CONFIG";
export declare const buildUrlEncodedData: (obj: object) => URLSearchParams;
export declare const getIsAuthenticated: (idTokenContents: JWTPayload | null | undefined) => boolean;
export declare const makeAuthorizationHeader: (token: string | null | undefined) => Record<string, string | never>;
export declare const recursiveOrderedObject: (x: Record<string, unknown>) => unknown;
export declare const popLocalStorageItem: (key: string) => string | null;
export declare const nop: () => void;
export declare const logMissingAuthContext: (...keys: string[]) => void;