UNPKG

convex

Version:

Client for the Convex Cloud

12 lines (10 loc) 291 B
import { Auth } from "../authentication.js"; import { performSyscall } from "./syscall.js"; export function setupAuth(): Auth { return { getUserIdentity: () => { const syscallJSON = performSyscall("getUserIdentity", {}); return Promise.resolve(syscallJSON); }, }; }