Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/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.4.10/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"
}