Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function getUser
import { getUser } from "https://deno.land/x/netzo@0.2.84/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