Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TypeError: The "config.authentication.options.credential" property must be an instance of the token credential class #1745

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /