[Bug]: "oauthFlows" does not exists
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nodejs, typescript
- Domain
- api, authentication
Research direction
Start with examples/oauth/src/index.ts and its package.json, then install the pinned SDK dependencies and run the example's build or type check. Compare the AppOptions and App type declarations used by SDK version 2.0.16 with the example's oauthFlows and getOAuthFlow references; done means the cloned OAuth example builds without these TypeScript errors.
Written by the indexing model from the issue text.
Description
Bug Description
I cloned this example https://github.com/microsoft/teams.ts/tree/main/examples/oauth
I am getting error for
oauthFlows
https://github.com/microsoft/teams.ts/blob/223616812417037cf8e105d49849c9207ce2e7dc/examples/oauth/src/index.ts#L10
Error: Object literal may only specify known properties, and 'oauthFlows' does not exist in type 'AppOptions<IPlugin<{}, {}>>'.
app.getOAuthFlow
https://github.com/microsoft/teams.ts/blob/223616812417037cf8e105d49849c9207ce2e7dc/examples/oauth/src/index.ts#L17
Error: Property 'getOAuthFlow' does not exist on type 'App<IPlugin<{}, {}>>'.
package.json
"dependencies": {
"@microsoft/teams.apps": "*",
"@microsoft/teams.common": "*",
"@microsoft/teams.graph": "*",
"@microsoft/teams.graph-endpoints": "*"
},
NodeJS 24.18.0
Steps to Reproduce
- Clone https://github.com/microsoft/teams.ts/tree/main/examples/oauth
- NPM Install
- Review the error
Expected Behavior
Successfully build the cloned example https://github.com/microsoft/teams.ts/tree/main/examples/oauth
Actual Behavior
I am getting error for
oauthFlows
https://github.com/microsoft/teams.ts/blob/223616812417037cf8e105d49849c9207ce2e7dc/examples/oauth/src/index.ts#L10
Error: Object literal may only specify known properties, and 'oauthFlows' does not exist in type 'AppOptions<IPlugin<{}, {}>>'.
app.getOAuthFlow
https://github.com/microsoft/teams.ts/blob/223616812417037cf8e105d49849c9207ce2e7dc/examples/oauth/src/index.ts#L17
Error: Property 'getOAuthFlow' does not exist on type 'App<IPlugin<{}, {}>>'.
SDK Version
2.0.16
Languages Affected
TypeScript
- Dominant language
- TypeScript
- Stars
- 729
- Forks
- 270
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/teams-sdk
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 1/5 Under an hour Newbie friendliness 58/100
All issues in microsoft/teams-sdk
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100