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
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"
}
Parameters
optional
options: Deno.KvListOptions