Skip to content

Commit db95a89

Browse files
0o001tnorling
andauthored
fix: placeholder typo (#6381)
Co-authored-by: Thomas Norling <[email protected]>
1 parent 31d10df commit db95a89

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/msal-common/scripts/metadata.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import yargs from "yargs";
99
import { isEqual } from "lodash";
1010

1111
const METADATA_TYPESCRIPT_LOCATION = "src/authority/AuthorityMetadata.ts";
12-
const AUTHORITY_PLACHOLDER = "{AUTHORITY}";
12+
const AUTHORITY_PLACEHOLDER = "{AUTHORITY}";
1313
const METADATA_SOURCES = {
14-
endpointMetadata: `${AUTHORITY_PLACHOLDER}v2.0/.well-known/openid-configuration`,
15-
instanceDiscoveryMetadata: `https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=${AUTHORITY_PLACHOLDER}oauth2/v2.0/authorize`,
14+
endpointMetadata: `${AUTHORITY_PLACEHOLDER}v2.0/.well-known/openid-configuration`,
15+
instanceDiscoveryMetadata: `https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=${AUTHORITY_PLACEHOLDER}oauth2/v2.0/authorize`,
1616
};
1717

1818
async function metadataWatch() {
@@ -60,7 +60,7 @@ async function metadataWatch() {
6060
await checkValidityOfMetadata(
6161
metadataJson.endpointMetadata[authority],
6262
METADATA_SOURCES.endpointMetadata.replace(
63-
AUTHORITY_PLACHOLDER,
63+
AUTHORITY_PLACEHOLDER,
6464
authority
6565
)
6666
);
@@ -96,7 +96,7 @@ async function metadataWatch() {
9696
] = await checkValidityOfMetadata(
9797
metadataJson.instanceDiscoveryMetadata[authority],
9898
METADATA_SOURCES.instanceDiscoveryMetadata.replace(
99-
AUTHORITY_PLACHOLDER,
99+
AUTHORITY_PLACEHOLDER,
100100
authority
101101
)
102102
);

0 commit comments

Comments
 (0)