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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d5d25d2cefdc1dfb620d3c190fb883d8b33e33e3fba584825524968d416b8dc
4
- data.tar.gz: 2168f866d3ce1a8f6bfe7a39618d857c5e835a33977f6147182055254a9b3ee3
3
+ metadata.gz: ecae9b8983b3c5424abf10c7fbaf3af818eaea627e2dc03d61648c97f0e3b7c0
4
+ data.tar.gz: 2d5a209746aca96e85a7bbf62df41d27fba27ad1cd1a7c78d8b1e84d2dcf2753
5
5
  SHA512:
6
- metadata.gz: abbd1bb992381e8eec80668e88e5b048a546bee91da7e78f04d9e4029b9ab2515da6d87b14cdfbcd6f344d3670c4255c63d2079060a55a8013326227d1e2477e
7
- data.tar.gz: 8e659c85efa1eaa046e81b37e738724d566db31ba32456ca8b36597daae4ed9e638df7dba4a0252bd4ba486f24ead89a5d4bbab2f83d7217376fc16828f96cff
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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '6.2.1'
4
+ VERSION = '6.3.0'
5
5
  end
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.2.1
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-07 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday