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

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

Deno-powered framework for building business web apps
Go to Latest
function createUser
import { createUser } from "https://deno.land/x/netzo@0.3.91/core/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 "../../../../core/plugins/auth/utils/db.ts";

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