Skip to content

Commit fa68c46

Browse files
committed
use sharedkey mechanism for authenticating to AzMaps
1 parent 7af53b0 commit fa68c46

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/pages/Explore/components/Map/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ const ExploreMap = () => {
5959
style: DEFAULT_MAP_STYLE,
6060
renderWorldCopies: true,
6161
authOptions: {
62-
authType: atlas.AuthenticationType.anonymous,
63-
clientId: AZMAPS_CLIENT_ID,
64-
getToken: fetchMapToken,
62+
authType: atlas.AuthenticationType.subscriptionKey,
63+
subscriptionKey: process.env.REACT_APP_AZMAPS_KEY,
6564
},
6665
transformRequest: addEntityHeader,
6766
});

0 commit comments

Comments
 (0)