@absolutejs/auth 0.49.2 → 0.49.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -885,7 +885,10 @@ var providers = defineProviders({
885
885
  url: "https://services.leadconnectorhq.com/users/me"
886
886
  },
887
887
  scopeRequired: true,
888
- subject: ["id"],
888
+ subject: ["locationId"],
889
+ subjectBySource: {
890
+ tokenResponse: ["locationId"]
891
+ },
889
892
  subjectType: "string",
890
893
  tokenRequest: {
891
894
  authIn: "body",
@@ -3341,6 +3344,12 @@ var resolveOAuthAuthorization = async ({
3341
3344
  providerConfiguration: providers[authProvider],
3342
3345
  source: "idToken"
3343
3346
  });
3347
+ } else if (providers[authProvider].subjectBySource?.tokenResponse) {
3348
+ userIdentity = normalizeProviderIdentity({
3349
+ identity: tokenResponse,
3350
+ providerConfiguration: providers[authProvider],
3351
+ source: "tokenResponse"
3352
+ });
3344
3353
  } else if (authProvider === "withings") {
3345
3354
  userIdentity = { userid: tokenResponse.body.userid };
3346
3355
  accessToken = tokenResponse.body.access_token;
@@ -27894,5 +27903,5 @@ export {
27894
27903
  AuthIdentityConflictError
27895
27904
  };
27896
27905
 
27897
- //# debugId=F74A795104D4323264756E2164756E21
27906
+ //# debugId=178CE4DFADBEB75764756E2164756E21
27898
27907
  //# sourceMappingURL=index.js.map