Property 'token' does not exist on type 'Authentication' #282
Labels
Type: Bug
Something isn't working as documented, or is being fixed
typescript
Relevant to TypeScript users only
I am going to start out by saying I am a total typescript/javascript newb.
I am trying to create a github action using this
@octokit/auth-app
library. I am trying to authenticate to github using an installation ID. For some reason the typing isn't setup properly to allow access of thetoken
property of the object that is returned after callingcreateAppAuth
. I was able to resolve my issue by adding: any
to cast to the generic any type so that properties can be referenced generically. But this doesn't seem like an ideal solution.Here is my code that does not succeed:
This code results in the following error when compiling:
Here is my successful code with the
any
type workaround:Any suggestions on what I should be doing differently, or is this a bug?
The text was updated successfully, but these errors were encountered: