Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Deno-powered framework for building business web apps
Go to Latest
function listUsers
import { listUsers } from "https://deno.land/x/netzo@0.3.91/core/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 "../../../../core/plugins/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"
}