stytch 10.34.0 → 10.35.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.
- checksums.yaml +4 -4
- data/lib/stytch/b2b_organizations.rb +9 -2
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a21c7819e335e5e1512dd207196f170a535f83abb0cfd2075d1e74c031016e62
|
4
|
+
data.tar.gz: 7241e6caccaaf5a7380b3dd6acca90fd619d5df457a8c368d1c0d8ef667bce8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b5df47cb45208d49f4cb9558066e698438905eec30b11febc43b55623b5a81afe90112d4110dcc385ec483ab6a9335b3bf5e43a04e85ea912ffc64babe5048
|
7
|
+
data.tar.gz: 7c513da2af700131f700ba74e2319043e677a2ad295bfe93a0cb22ca5b73ff49060781cccff7e9f86783796975bc0dc65f9bed497ee6f45cccce06a74264292d
|
@@ -1522,10 +1522,12 @@ module StytchB2B
|
|
1522
1522
|
# - Must not be in use by another member (retired emails count as used until they are [unlinked](https://stytch.com/docs/b2b/api/unlink-retired-member-email))
|
1523
1523
|
# - Must not be updating for another member (i.e. two members cannot attempt to update to the same email at once)
|
1524
1524
|
#
|
1525
|
-
# The member will receive an Email Magic Link that expires in 5 minutes. If they do not verify their new email address in that timeframe, the email
|
1525
|
+
# The member will receive an Email Magic Link (or Email OTP Code, if `EMAIL_OTP` is specified as the delivery method) that expires in 5 minutes. If they do not verify their new email address in that timeframe, the email
|
1526
1526
|
# will be freed up for other members to use.
|
1527
1527
|
#
|
1528
|
-
#
|
1528
|
+
# If using Email Magic Links, the magic link will redirect to your `login_redirect_url` (or the configured default if one isn't provided), and you should invoke the [Authenticate Magic Link](https://stytch.com/docs/b2b/api/authenticate-magic-link) endpoint as normal to complete the flow.
|
1529
|
+
#
|
1530
|
+
# If using Email OTP Codes, you should invoke the [Authenticate Email OTP Code](https://stytch.com/docs/b2b/api/authenticate-email-otp) endpoint as normal to complete the flow. Make sure to pass the new email address to the endpoint.
|
1529
1531
|
#
|
1530
1532
|
# == Parameters:
|
1531
1533
|
# organization_id::
|
@@ -1554,6 +1556,9 @@ module StytchB2B
|
|
1554
1556
|
# Use a custom template for login emails. By default, it will use your default email template. The template must be from Stytch's
|
1555
1557
|
# built-in customizations or a custom HTML email for Magic Links - Login.
|
1556
1558
|
# The type of this field is nilable +String+.
|
1559
|
+
# delivery_method::
|
1560
|
+
# The method that should be used to verify a member's new email address. The options are `EMAIL_MAGIC_LINK` or `EMAIL_OTP`. This field is optional, if no value is provided, `EMAIL_MAGIC_LINK` will be used.
|
1561
|
+
# The type of this field is nilable +StartEmailUpdateRequestDeliveryMethod+ (string enum).
|
1557
1562
|
#
|
1558
1563
|
# == Returns:
|
1559
1564
|
# An object with the following fields:
|
@@ -1582,6 +1587,7 @@ module StytchB2B
|
|
1582
1587
|
login_redirect_url: nil,
|
1583
1588
|
locale: nil,
|
1584
1589
|
login_template_id: nil,
|
1590
|
+
delivery_method: nil,
|
1585
1591
|
method_options: nil
|
1586
1592
|
)
|
1587
1593
|
headers = {}
|
@@ -1592,6 +1598,7 @@ module StytchB2B
|
|
1592
1598
|
request[:login_redirect_url] = login_redirect_url unless login_redirect_url.nil?
|
1593
1599
|
request[:locale] = locale unless locale.nil?
|
1594
1600
|
request[:login_template_id] = login_template_id unless login_template_id.nil?
|
1601
|
+
request[:delivery_method] = delivery_method unless delivery_method.nil?
|
1595
1602
|
|
1596
1603
|
post_request("/v1/b2b/organizations/#{organization_id}/members/#{member_id}/start_email_update", request, headers)
|
1597
1604
|
end
|
data/lib/stytch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stytch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.35.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|