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

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

Deno-powered framework for building business web apps
Go to Latest
function updateUser
import { updateUser } from "https://deno.land/x/netzo@0.3.91/core/plugins/auth/utils/db.ts";

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

Examples

Example 1

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

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