import { updateUser } from "https://deno.land/x/netzo@0.4.72/plugins/auth/utils/db.ts";
Creates a user in the database, overwriting any previous data.
Examples
Example 1
Example 1
import { updateUser } from "../../../../auth/utils/db.ts";
await updateUser({
authId: "auth0|xxx",
sessionId: crypto.randomUUID(),
roles: ["admin"],
});
Parameters
user: AuthUser