File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ import {
4444 notificationFilterMinimumSeverityLevel ,
4545 NotificationFilterMinimumSeverityLevel ,
4646 NotificationFilterDisabledCategory ,
47- notificationFilterDisabledCategory
47+ notificationFilterDisabledCategory ,
48+ expirationBasedAuthTokenManager
4849} from '../../types/index'
4950
5051import Driver from '../../types/driver'
@@ -87,6 +88,14 @@ const driver4: Driver = driver(
8788 }
8889)
8990
91+ const driver5 : Driver = driver ( 'bolt://localhost:7687' , expirationBasedAuthTokenManager ( {
92+ tokenProvider : async ( ) => {
93+ return {
94+ token : auth . basic ( 'neo4j' , 'password' )
95+ }
96+ }
97+ } ) )
98+
9099const readMode1 : string = session . READ
91100const writeMode1 : string = session . WRITE
92101
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ declare const auth: {
122122
123123declare function driver (
124124 url : string ,
125- authToken ?: AuthToken ,
125+ authToken ?: AuthToken | AuthTokenManager ,
126126 config ?: Config
127127) : Driver
128128
You can’t perform that action at this time.
0 commit comments