{"id":28524813,"url":"https://github.com/microsoftgraph/msgraph-sdk-typescript-core","last_synced_at":"2026-01-20T17:08:59.115Z","repository":{"id":218981584,"uuid":"747860932","full_name":"microsoftgraph/msgraph-sdk-typescript-core","owner":"microsoftgraph","description":"Core functionalities for the Microsoft Graph JavaScript SDKs fluent APIs","archived":false,"fork":false,"pushed_at":"2025-11-04T09:11:48.000Z","size":2205,"stargazers_count":3,"open_issues_count":11,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-11-11T03:45:37.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoftgraph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-24T19:34:17.000Z","updated_at":"2025-10-21T20:34:46.000Z","dependencies_parsed_at":"2024-02-16T11:29:03.455Z","dependency_job_id":"86dcb96e-4903-430c-9b8f-44d5bf7e537d","html_url":"https://github.com/microsoftgraph/msgraph-sdk-typescript-core","commit_stats":null,"previous_names":["microsoftgraph/msgraph-sdk-typescript-core"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/microsoftgraph/msgraph-sdk-typescript-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-typescript-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-typescript-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-typescript-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-typescript-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoftgraph","download_url":"https://codeload.github.com/microsoftgraph/msgraph-sdk-typescript-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-typescript-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T11:11:23.659Z","updated_at":"2026-01-20T17:08:59.098Z","avatar_url":"https://github.com/microsoftgraph.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft Graph Core SDK for Typescript\n\nGet started with the Microsoft Graph SDK for Typescript by integrating the [Microsoft Graph API](https://docs.microsoft.com/graph/overview) into your Typescript application!\n\n\u003e **Note:** this package contains the core feature of the TypeScript SDK. To get the full experience checkout [the v1 SDK](https://github.com/microsoftgraph/msgraph-sdk-typescript) and [the beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript).\n\u003e\n\u003e **Note:** the Microsoft Graph Typescript SDK is currently in Pre-Release.\n\n## 1. Installation\n\n```shell\n# this will install the core package\nnpm install @microsoft/msgraph-sdk-core\n```\n\n## 2. Getting started\n\n\u003e Note: we are working to add the getting started information for Typescript to our public documentation, in the meantime the following sample should help you getting started.\n\n### 2.1 Register your application\n\nRegister your application by following the steps at [Register your app with the Microsoft Identity Platform](https://docs.microsoft.com/graph/auth-register-app-v2).\n\n### 2.2 Create an AuthenticationProvider object\n\nAn instance of the **FetchClient** class handles making requests to the service. To create a new instance of this class, you need to provide an instance of **AuthenticationProvider**, which can authenticate requests to Microsoft Graph.\n\n\u003c!-- TODO restore that and remove the snippets below once the SDK hits GA and the public documentation has been updated --\u003e\n\u003c!-- For an example of how to get an authentication provider, see [choose a Microsoft Graph authentication provider](https://docs.microsoft.com/graph/sdks/choose-authentication-providers?tabs=typescript). --\u003e\n\n#### 2.2.1 Authorization Code Provider\n\n```TypeScript\n// @azure/identity\nconst credential = new AuthorizationCodeCredential(\n  'YOUR_TENANT_ID',\n  'YOUR_CLIENT_ID',\n  'YOUR_CLIENT_SECRET',\n  'AUTHORIZATION_CODE',\n  'REDIRECT_URL',\n);\n\n// @microsoft/kiota-authentication-azure\nconst authProvider = new AzureIdentityAuthenticationProvider(credential, [\"User.Read\"]);\n```\n\n#### 2.2.2 Client Credentials Provider\n\n##### With a certificate\n\n```TypeScript\n// @azure/identity\nconst credential = new ClientCertificateCredential(\n  'YOUR_TENANT_ID',\n  'YOUR_CLIENT_ID',\n  'YOUR_CERTIFICATE_PATH',\n);\n\n// @microsoft/kiota-authentication-azure\nconst authProvider = new AzureIdentityAuthenticationProvider(credential, [\"https://graph.microsoft.com/.default\"]);\n```\n\n##### With a secret\n\n```TypeScript\n// @azure/identity\nconst credential = new ClientSecretCredential(\n  'YOUR_TENANT_ID',\n  'YOUR_CLIENT_ID',\n  'YOUR_CLIENT_SECRET',\n);\n\n// @microsoft/kiota-authentication-azure\nconst authProvider = new AzureIdentityAuthenticationProvider(credential, [\"https://graph.microsoft.com/.default\"]);\n```\n\n#### 2.2.3 On-behalf-of provider\n\n```TypeScript\n// @azure/identity\nconst credential = new OnBehalfOfCredential({\n  tenantId: 'YOUR_TENANT_ID',\n  clientId: 'YOUR_CLIENT_ID',\n  clientSecret: 'YOUR_CLIENT_SECRET',\n  userAssertionToken: 'JWT_TOKEN_TO_EXCHANGE',\n});\n\n// @microsoft/kiota-authentication-azure\nconst authProvider = new AzureIdentityAuthenticationProvider(credential, [\"https://graph.microsoft.com/.default\"]);\n```\n\n#### 2.2.4 Device code provider\n\n```TypeScript\n// @azure/identity\nconst credential = new DeviceCodeCredential({\n  tenantId: 'YOUR_TENANT_ID',\n  clientId: 'YOUR_CLIENT_ID',\n  userPromptCallback: (info) =\u003e {\n    console.log(info.message);\n  },\n});\n\n// @microsoft/kiota-authentication-azure\nconst authProvider = new AzureIdentityAuthenticationProvider(credential, [\"User.Read\"]);\n```\n\n#### 2.2.5 Interactive provider\n\n```TypeScript\n// @azure/identity\nconst credential = new InteractiveBrowserCredential({\n  tenantId: 'YOUR_TENANT_ID',\n  clientId: 'YOUR_CLIENT_ID',\n  redirectUri: 'http://localhost',\n});\n\n// @microsoft/kiota-authentication-azure\nconst authProvider = new AzureIdentityAuthenticationProvider(credential, [\"User.Read\"]);\n```\n\n#### 2.2.6 Username/password provider\n\n```TypeScript\n// @azure/identity\nconst credential = new UsernamePasswordCredential(\n  'YOUR_TENANT_ID',\n  'YOUR_CLIENT_ID',\n  'YOUR_USER_NAME',\n  'YOUR_PASSWORD',\n);\n\n// @microsoft/kiota-authentication-azure\nconst authProvider = new AzureIdentityAuthenticationProvider(credential, [\"User.Read\"]);\n```\n\n## 3. Make requests against the service\n\nTODO: document how the fetch client augmented with middleware handlers can be used to make arbitrary requests.\n\n## 4. Documentation\n\nFor more detailed documentation, see:\n\n* [Overview](https://docs.microsoft.com/graph/overview)\n* [Collections](https://docs.microsoft.com/graph/sdks/paging)\n* [Making requests](https://docs.microsoft.com/graph/sdks/create-requests)\n* [Known issues](https://github.com/MicrosoftGraph/msgraph-sdk-typescript/issues)\n* [Contributions](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/CONTRIBUTING.md)\n\n## 5. Issues\n\nFor known issues, see [issues](https://github.com/MicrosoftGraph/msgraph-sdk-typescript/issues).\n\n## 6. Contributions\n\nThe Microsoft Graph SDK is open for contribution. To contribute to this project, see [Contributing](https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/main/CONTRIBUTING.md).\n\n## 7. License\n\nCopyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MIT license](LICENSE).\n\n## 8. Third-party notices\n\n[Third-party notices](THIRD%20PARTY%20NOTICES)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sdk-typescript-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sdk-typescript-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sdk-typescript-core/lists"}