Skip to main content
Module

x/neo4j_driver_lite/mod.ts>AuthTokenManagers

Neo4j Bolt driver for JavaScript
Go to Latest
class AuthTokenManagers
Re-export
import { AuthTokenManagers } from "https://deno.land/x/neo4j_driver_lite@5.14.0-alpha01/mod.ts";

Defines the object which holds the common AuthTokenManager used in the Driver

Methods

basic(unnamed 0: { tokenProvider: () => Promise<AuthToken>; }): AuthTokenManager

Creates a AuthTokenManager for handle AuthToken and password rotation.

Warning: tokenProvider must only ever return auth information belonging to the same identity. Switching identities using the AuthTokenManager is undefined behavior.

bearer(unnamed 0: { tokenProvider: () => Promise<AuthTokenAndExpiration>; }): AuthTokenManager

Creates a AuthTokenManager for handle AuthToken which is expires.

Warning: tokenProvider must only ever return auth information belonging to the same identity. Switching identities using the AuthTokenManager is undefined behavior.