import { getUser } from "https://deno.land/x/netzo@0.4.72/plugins/auth/utils/db.ts";
Gets the user with the given authId from the database.
Examples
Example 1
Example 1
import { getUser } from "../../../../auth/utils/db.ts";
const user = await getUser("jack");
user?.authId; // Returns "auth0|xxx"
user?.sessionId; // Returns "xxx"
user?.roles; // Returns ["admin"]
user?.provider; // Returns "github"