Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Creates a new user in the database. Throws if the user or user session already exists.

Examples

Example 1

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

await createUser({
  authId: "auth0|xxx",
  sessionId: crypto.randomUUID(),
});