@stytch/vanilla-js 5.5.3 → 5.6.0

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.
@@ -712,6 +712,7 @@ exports.B2BOAuthProviders = void 0;
712
712
  B2BOAuthProviders["Microsoft"] = "microsoft";
713
713
  B2BOAuthProviders["HubSpot"] = "hubspot";
714
714
  B2BOAuthProviders["Slack"] = "slack";
715
+ B2BOAuthProviders["GitHub"] = "github";
715
716
  })(exports.B2BOAuthProviders || (exports.B2BOAuthProviders = {}));
716
717
  function _slicedToArray(arr, i) {
717
718
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
@@ -3611,6 +3612,12 @@ var HeadlessB2BOAuthClient$1 = /*#__PURE__*/function () {
3611
3612
  start: this.startDiscoveryOAuthFlow(exports.B2BOAuthProviders.Slack)
3612
3613
  }
3613
3614
  };
3615
+ this.github = {
3616
+ start: this.startOAuthFlow(exports.B2BOAuthProviders.GitHub),
3617
+ discovery: {
3618
+ start: this.startDiscoveryOAuthFlow(exports.B2BOAuthProviders.GitHub)
3619
+ }
3620
+ };
3614
3621
  }
3615
3622
  _createClass(HeadlessB2BOAuthClient, [{
3616
3623
  key: "authenticate",
@@ -710,6 +710,7 @@ var B2BOAuthProviders;
710
710
  B2BOAuthProviders["Microsoft"] = "microsoft";
711
711
  B2BOAuthProviders["HubSpot"] = "hubspot";
712
712
  B2BOAuthProviders["Slack"] = "slack";
713
+ B2BOAuthProviders["GitHub"] = "github";
713
714
  })(B2BOAuthProviders || (B2BOAuthProviders = {}));
714
715
  function _slicedToArray(arr, i) {
715
716
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
@@ -3609,6 +3610,12 @@ var HeadlessB2BOAuthClient$1 = /*#__PURE__*/function () {
3609
3610
  start: this.startDiscoveryOAuthFlow(B2BOAuthProviders.Slack)
3610
3611
  }
3611
3612
  };
3613
+ this.github = {
3614
+ start: this.startOAuthFlow(B2BOAuthProviders.GitHub),
3615
+ discovery: {
3616
+ start: this.startDiscoveryOAuthFlow(B2BOAuthProviders.GitHub)
3617
+ }
3618
+ };
3612
3619
  }
3613
3620
  _createClass(HeadlessB2BOAuthClient, [{
3614
3621
  key: "authenticate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stytch/vanilla-js",
3
- "version": "5.5.3",
3
+ "version": "5.6.0",
4
4
  "description": "Stytch's official Javascript Client Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -39,7 +39,7 @@
39
39
  "hoistingLimits": "workspaces"
40
40
  },
41
41
  "dependencies": {
42
- "@stytch/core": "2.30.0",
42
+ "@stytch/core": "2.31.0",
43
43
  "@types/google-one-tap": "^1.2.0",
44
44
  "type-fest": "4.15.0"
45
45
  },