Skip to content

Commit 6aebbd8

Browse files
nicholas-reesNicholas Rees
andauthored
🤖 Merge PR DefinitelyTyped#73142 Added apiEntryPoint and graphApiVersion in passport-microsoft by @nicholas-rees
Co-authored-by: Nicholas Rees <[email protected]>
1 parent f9aacb9 commit 6aebbd8

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎types/passport-microsoft/index.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export {};
88
type OptionalOptionParameters = "authorizationURL" | "tokenURL" | "scopeSeparator" | "customHeaders";
99

1010
interface MicrosoftSpecificStrategyOptions {
11+
apiEntryPoint: string;
12+
graphApiVersion: string;
1113
tenant: string;
1214
}
1315

‎types/passport-microsoft/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/passport-microsoft",
4-
"version": "1.0.9999",
4+
"version": "2.1.9999",
55
"projects": [
66
"https://github.com/seanfisher/passport-microsoft#readme"
77
],

‎types/passport-microsoft/passport-microsoft-tests.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const User = {
1111
passport.use(
1212
new MicrosoftStrategy(
1313
{
14+
apiEntryPoint: "https://graph.microsoft.us",
15+
graphApiVersion: "beta",
1416
tenant: "thisIsMyTenant",
1517
clientID: "thisIsMyClientId",
1618
clientSecret: "thisIsMyClientSecret",

0 commit comments

Comments
 (0)