summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLAccountManager.m
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2019-05-15 14:35:18 -0700
committerJason Wray <jason@mapbox.com>2019-05-15 14:35:18 -0700
commitcbef953ce39c5892adf0f468de5b065f23e6ac54 (patch)
tree8a00c25f35d50f9530fbecc646b597c43e688706 /platform/darwin/src/MGLAccountManager.m
parent3a6ff7710fcf201f82ddc2090488ef585bd8ab17 (diff)
downloadqtlocation-mapboxgl-upstream/friedbunny-libmbxaccounts-0.0.5.tar.gz
[ios] Update to libmbxaccounts 0.0.5upstream/friedbunny-libmbxaccounts-0.0.5
Diffstat (limited to 'platform/darwin/src/MGLAccountManager.m')
-rw-r--r--platform/darwin/src/MGLAccountManager.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLAccountManager.m b/platform/darwin/src/MGLAccountManager.m
index edcfbbcdf0..da2b99c9ac 100644
--- a/platform/darwin/src/MGLAccountManager.m
+++ b/platform/darwin/src/MGLAccountManager.m
@@ -50,7 +50,7 @@ static BOOL _MGLAccountsSDKEnabled;
}
if (self.isAccountsSDKEnabled) {
- self.skuToken = MBXSKUToken.mapsToken;
+ self.skuToken = [MBXSKUToken tokenForSKUID:MBXAccountsSKUIDMaps type:MBXAccountsSKUTypeUser];
}
#endif
@@ -131,7 +131,7 @@ static BOOL _MGLAccountsSDKEnabled;
+ (NSString *)skuToken {
if (MGLAccountManager.isAccountsSDKEnabled) {
return [MGLAccountManager.sharedManager isSKUTokenExpired] ?
- MBXSKUToken.mapsToken :
+ [MBXSKUToken tokenForSKUID:MBXAccountsSKUIDMaps type:MBXAccountsSKUTypeUser] :
MGLAccountManager.sharedManager.skuToken;
}
else {