Fix Linear Personal Access Token (PAT) client initialization using apiKey instead of accessToken#5
Conversation
|
FYI @ocasta181 |
|
Spent some time debugging the following error: Here's the exact place in the Linear SDK that produces it: https://github.com/linear/linear/blob/master/packages/sdk/src/client.ts#L34 I came up with the same solution as in the PR, would love to see it merged 🙏 |
|
@agerlic @ngub You may want to test that and provide feedback. Maybe it even allows now OAuth, I saw some code in #3 , but I haven't tested it myself. |
|
Hey, thanks for the contribution @agerlic! |
Fix LinearClient initialization to match Linear SDK documentation
This PR fixes an issue with the LinearClient initialization in the Personal Access Token (PAT) flow. According to the Linear SDK documentation, when using API key authentication, the client should be initialized with the
apiKeyparameter rather than theaccessTokenparameter.