import { updateUser } from "https://deno.land/x/netzo@0.2.84/plugins/portals/utils/db.ts";
Creates a user in the database, overwriting any previous data.
Examples
Example 1
Example 1
import { updateUser } from "netzo/plugins/portals/utils/db.ts";
await updateUser({
login: "john",
sessionId: crypto.randomUUID(),
role: "admin",
});
Parameters
user: User