-
Notifications
You must be signed in to change notification settings - Fork 474
Open
@BrandonNoad
Description
I am trying to implement the Token Credential authentication added here: tediousjs/tedious#1641
For some reason I am getting a TypeError: The "config.authentication.options.credential" property must be an instance of the token credential class
error when trying to connect.
My authentication
object in the config looks like
authentication: {
type: 'token-credential',
options: {
credential,
},
}
where credential
is a new ClientSecretCredential
from @azure/identity
. If I call isTokenCredential(credential)
, it returns true
. So I'm not sure why I am hitting this error.
Here is the line of code where the error occurs: https://github.com/tediousjs/tedious/blob/master/src/connection.ts#L1139
Metadata
Metadata
Assignees
Labels
No labels