stytch 6.2.1 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/users.rb +12 -0
- 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: ecae9b8983b3c5424abf10c7fbaf3af818eaea627e2dc03d61648c97f0e3b7c0
|
4
|
+
data.tar.gz: 2d5a209746aca96e85a7bbf62df41d27fba27ad1cd1a7c78d8b1e84d2dcf2753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae812d3bb2c53a0c1bbc6af31981ec8c934b0ced77c822f5b8251327951c509108b01d11f435c02b7c96f10c2f7e6f217957cd0e131b14bae31c0f97fc13ce2b
|
7
|
+
data.tar.gz: 702a775c32098a283fdbf02cea03be91e7710710cdf7508552f48665271d036f640cca847e9e643bce2de97b974b5098532931238bf6a63b81437d7ce97fbbdc
|
data/lib/stytch/users.rb
CHANGED
@@ -254,6 +254,18 @@ module Stytch
|
|
254
254
|
put_request("/v1/users/#{user_id}", request)
|
255
255
|
end
|
256
256
|
|
257
|
+
def exchange_primary_factor(
|
258
|
+
user_id:,
|
259
|
+
email_address: nil,
|
260
|
+
phone_number: nil
|
261
|
+
)
|
262
|
+
request = {}
|
263
|
+
request[:email_address] = email_address unless email_address.nil?
|
264
|
+
request[:phone_number] = phone_number unless phone_number.nil?
|
265
|
+
|
266
|
+
put_request("/v1/users/#{user_id}/exchange_primary_factor", request)
|
267
|
+
end
|
268
|
+
|
257
269
|
# Delete a User from Stytch.
|
258
270
|
#
|
259
271
|
# == Parameters:
|
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: 6.
|
4
|
+
version: 6.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|