Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/plugins/auth/utils/db.ts>listUsers

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function listUsers
import { listUsers } from "https://deno.land/x/netzo@0.4.72/plugins/auth/utils/db.ts";

Returns a Deno.KvListIterator which can be used to iterate over the users in the database.

Examples

Example 1

import { listUsers } from "../../../../auth/utils/db.ts";

for await (const entry of listUsers()) {
  entry.value.authId; // Returns "auth0|xxx"
  entry.value.sessionId; // Returns "xxx"
  entry.value.roles; // Returns ["admin"]
  entry.value.provider; // Returns "github"
}