UNPKG

@samepage/internal

Version:

Utilities used across modules - not meant for use by users directly

26 lines (25 loc) 669 B
import { LoaderFunctionArgs } from "react-router"; import { AuthenticateNotebook } from "./types"; declare const authenticateRequest: ({ args, authenticateNotebook, }: { args: LoaderFunctionArgs; authenticateNotebook: AuthenticateNotebook; }) => Promise<{ auth: false; requestId: string; notebookUuid?: undefined; app?: undefined; workspace?: undefined; token?: undefined; tokenUuid?: undefined; userId?: undefined; } | { auth: true; notebookUuid: string; app: string; workspace: string; requestId: string; token: string; tokenUuid: string; userId: string; }>; export default authenticateRequest;