Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function getUser
import { getUser } from "https://deno.land/x/netzo@0.2.94/plugins/portals/utils/db.ts";

Gets the user with the given login from the database.

Examples

Example 1

import { getUser } from "netzo/plugins/portals/utils/db.ts";

const user = await getUser("jack");
user?.login; // Returns "jack"
user?.sessionId; // Returns "xxx"
user?.role; // Returns "admin"

Parameters

login: string