Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function updateUser
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

import { updateUser } from "netzo/plugins/portals/utils/db.ts";

await updateUser({
  login: "john",
  sessionId: crypto.randomUUID(),
  role: "admin",
});