UNPKG

convex

Version:

Client for the Convex Cloud

22 lines (21 loc) 539 B
"use strict"; import { performSyscall } from "./syscall.js"; export function setupAuth() { return { getUserIdentity: () => { const syscallJSON = performSyscall("getUserIdentity", {}); return Promise.resolve(syscallJSON); } }; } export function setupActionAuth(requestId) { return { getUserIdentity: () => { const syscallJSON = performSyscall("actions/getUserIdentity", { requestId }); return Promise.resolve(syscallJSON); } }; } //# sourceMappingURL=authentication_impl.js.map