@workos-inc/node 10.5.0 → 10.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.
@@ -4823,7 +4823,7 @@ var UserManagement = class {
4823
4823
  * Or use getAuthorizationUrlWithPKCE() which handles PKCE automatically.
4824
4824
  */
4825
4825
  getAuthorizationUrl(options) {
4826
- const { claimNonce, connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, invitationToken, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, state, screenHint } = options;
4826
+ const { claimNonce, connectionId, codeChallenge, codeChallengeMethod, clientId, domainHint, invitationToken, loginHint, maxAge, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, state, screenHint } = options;
4827
4827
  const resolvedClientId = this.resolveClientId(clientId);
4828
4828
  if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
4829
4829
  if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
@@ -4836,6 +4836,7 @@ var UserManagement = class {
4836
4836
  domain_hint: domainHint,
4837
4837
  invitation_token: invitationToken,
4838
4838
  login_hint: loginHint,
4839
+ max_age: maxAge?.toString(),
4839
4840
  provider,
4840
4841
  provider_query_params: providerQueryParams,
4841
4842
  provider_scopes: providerScopes,
@@ -4875,7 +4876,7 @@ var UserManagement = class {
4875
4876
  * ```
4876
4877
  */
4877
4878
  async getAuthorizationUrlWithPKCE(options) {
4878
- const { clientId, connectionId, domainHint, loginHint, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, screenHint } = options;
4879
+ const { clientId, connectionId, domainHint, loginHint, maxAge, organizationId, provider, providerQueryParams, providerScopes, prompt, redirectUri, screenHint } = options;
4879
4880
  const resolvedClientId = this.resolveClientId(clientId);
4880
4881
  if (!provider && !connectionId && !organizationId) throw new TypeError(`Incomplete arguments. Need to specify either a 'connectionId', 'organizationId', or 'provider'.`);
4881
4882
  if (provider !== "authkit" && screenHint) throw new TypeError(`'screenHint' is only supported for 'authkit' provider`);
@@ -4888,6 +4889,7 @@ var UserManagement = class {
4888
4889
  organization_id: organizationId,
4889
4890
  domain_hint: domainHint,
4890
4891
  login_hint: loginHint,
4892
+ max_age: maxAge?.toString(),
4891
4893
  provider,
4892
4894
  provider_query_params: providerQueryParams,
4893
4895
  provider_scopes: providerScopes,
@@ -7148,7 +7150,7 @@ var Vault = class {
7148
7150
  };
7149
7151
  //#endregion
7150
7152
  //#region package.json
7151
- var version = "10.5.0";
7153
+ var version = "10.6.0";
7152
7154
  //#endregion
7153
7155
  //#region src/workos.ts
7154
7156
  const DEFAULT_HOSTNAME = "api.workos.com";
@@ -7679,4 +7681,4 @@ Object.defineProperty(exports, "serializeRevokeSessionOptions", {
7679
7681
  }
7680
7682
  });
7681
7683
 
7682
- //# sourceMappingURL=factory-CJmENOk9.cjs.map
7684
+ //# sourceMappingURL=factory-B6WUDYmR.cjs.map