Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netzo/plugins/auth/utils/db.ts>updateUser

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function updateUser
import { updateUser } from "https://deno.land/x/netzo@0.4.87/plugins/auth/utils/db.ts";

Creates a user in the database, overwriting any previous data.

Examples

Example 1

import { updateUser } from "../../../../auth/utils/db.ts";

await updateUser({
  authId: "auth0|xxx",
  sessionId: crypto.randomUUID(),
  roles: ["admin"],
});