@stytch/vanilla-js 5.38.1 → 5.39.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @stytch/vanilla-js
2
2
 
3
+ ## 5.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3008b9e: Add the ability for users to go back from the MFA enrollment screen to change their enrollment method
8
+ - c2782be: Add options to the Admin Portal Member Management and SSO Connections configuration to specify the redirect URL when inviting members and testing SSO connections
9
+
3
10
  ## 5.38.1
4
11
 
5
12
  ### Patch Changes
@@ -229,7 +229,18 @@ interface AdminPortalUIConfigRoleDisplayProvider {
229
229
  /**
230
230
  * The UI configuration object for SSO configuration used in the Admin Portal.
231
231
  */
232
- type AdminPortalSSOUIConfig = AdminPortalUIConfigRoleDisplayProvider;
232
+ type AdminPortalSSOUIConfig = AdminPortalUIConfigRoleDisplayProvider & {
233
+ /**
234
+ * The URL used when testing SSO connections via the test button on the SSO Connection Details screen.
235
+ * If this value is not passed, the default `login_redirect_url` that you set in your Dashboard is used.
236
+ */
237
+ testLoginRedirectURL?: string;
238
+ /**
239
+ * The URL used when testing SSO connections via the test button on the SSO Connection Details screen.
240
+ * If this value is not passed, the default `signup_redirect_url` that you set in your Dashboard is used.
241
+ */
242
+ testSignupRedirectURL?: string;
243
+ };
233
244
  interface AdminPortalSSOMountOptions<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> extends AdminPortalComponentMountOptions<TProjectConfiguration> {
234
245
  /**
235
246
  * An {@link AdminPortalSSOUIConfig} object containing custom configuration.
@@ -310,6 +321,11 @@ interface AdminPortalMemberManagementUIConfig extends AdminPortalUIConfigRoleDis
310
321
  * The ID of the template to use when sending an invitation to join.
311
322
  */
312
323
  inviteTemplateId?: string;
324
+ /**
325
+ * The URL that the invited members click from the Email Magic Link.
326
+ * If this value is not passed, the default `invite_redirect_url` that you set in your Dashboard is used.
327
+ */
328
+ inviteRedirectURL?: string;
313
329
  }
314
330
  interface AdminPortalMemberManagementMountOptions<TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration> extends AdminPortalComponentMountOptions<TProjectConfiguration> {
315
331
  /**