File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ import {
44
44
notificationFilterMinimumSeverityLevel ,
45
45
NotificationFilterMinimumSeverityLevel ,
46
46
NotificationFilterDisabledCategory ,
47
- notificationFilterDisabledCategory
47
+ notificationFilterDisabledCategory ,
48
+ expirationBasedAuthTokenManager
48
49
} from '../../types/index'
49
50
50
51
import Driver from '../../types/driver'
@@ -87,6 +88,14 @@ const driver4: Driver = driver(
87
88
}
88
89
)
89
90
91
+ const driver5 : Driver = driver ( 'bolt://localhost:7687' , expirationBasedAuthTokenManager ( {
92
+ tokenProvider : async ( ) => {
93
+ return {
94
+ token : auth . basic ( 'neo4j' , 'password' )
95
+ }
96
+ }
97
+ } ) )
98
+
90
99
const readMode1 : string = session . READ
91
100
const writeMode1 : string = session . WRITE
92
101
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ declare const auth: {
122
122
123
123
declare function driver (
124
124
url : string ,
125
- authToken ?: AuthToken ,
125
+ authToken ?: AuthToken | AuthTokenManager ,
126
126
config ?: Config
127
127
) : Driver
128
128
You can’t perform that action at this time.
0 commit comments