@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";
@@ -7494,4 +7496,4 @@ function createWorkOS(options) {
7494
7496
  //#endregion
7495
7497
  export { FetchHttpClient as A, NoApiKeyProvidedException as C, isAuthenticationErrorData as D, AuthenticationException as E, GenericServerException as O, NotFoundException as S, BadRequestException as T, UnprocessableEntityException as _, DomainDataState as a, RateLimitExceededException as b, FeatureFlagsRuntimeClient as c, serializeRevokeSessionOptions as d, AuthenticateWithSessionCookieFailureReason as f, Actions as g, AutoPaginatable as h, OrganizationDomainVerificationStrategy as i, SubtleCryptoProvider as j, ApiKeyRequiredException as k, CookieSession as l, Webhooks as m, ConnectionType as n, GenerateLinkIntent as o, PKCE as p, OrganizationDomainState as r, WorkOS as s, createWorkOS as t, RefreshSessionFailureReason as u, UnauthorizedException as v, ConflictException as w, OauthException as x, SignatureVerificationException as y };
7496
7498
 
7497
- //# sourceMappingURL=factory-Dv9gybeB.mjs.map
7499
+ //# sourceMappingURL=factory-C3tbwZax.mjs.map