stytch 3.12.0 → 3.13.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: dcec2519afaa87ccb48ce1f442910f09618744fb106e4e25f2064a4c46ac5183
4
- data.tar.gz: f0f88be1b93f0c24abe360dd77d75bd51372c1b2a5aa6df44a27a429624b8f8f
3
+ metadata.gz: aea3ae56778d9f46f0da8e961e04fb6338d60fe3ee7454e5965e91b5f4f6bc8a
4
+ data.tar.gz: f0fddb02877ccb643ee0c1ca36cf705e85b42c54df587af1db27b439155a8b0b
5
5
  SHA512:
6
- metadata.gz: 488423abdd75a523de43be11740a329ad27209b666667e0d6343c3bfbcd02dba495067c57aaf82200d715d0aeb34f1648769e14e26d9b6047dcf972f2834cb52
7
- data.tar.gz: 2894e4571c63276cd74286b9b9c4ee8c7407c101c31da4bd6505ab2e370c8ca07b6eb6254b34a36cc4e69cd39073685045e31d805628cca64fe56db7f4a549e5
6
+ metadata.gz: 426e417c7bf372f4d0ff45101e2830448a9823224cc43d15e9bb732cbe788ab0407d07297d6aed9e59771a49355f295796aed42e2909c1e264a9e537dc8b0a74
7
+ data.tar.gz: 2b9c750eb2111e77561f37cbd184b89b776f7e6b3dd01516c19008b3132c9861f0543f3535ac8abfe2e7c438f4cbe1b1847321e4be8a950e85c2b9c857c506ad
@@ -15,7 +15,9 @@ module Stytch
15
15
  def authenticate_start(
16
16
  crypto_wallet_address:,
17
17
  crypto_wallet_type:,
18
- user_id: nil
18
+ user_id: nil,
19
+ session_token: nil,
20
+ session_jwt: nil,
19
21
  )
20
22
  request = {
21
23
  crypto_wallet_address: crypto_wallet_address,
@@ -23,6 +25,8 @@ module Stytch
23
25
  }
24
26
 
25
27
  request[:user_id] = user_id unless user_id.nil?
28
+ request[:session_token] = session_token unless session_token.nil?
29
+ request[:session_jwt] = session_jwt unless session_jwt.nil?
26
30
 
27
31
  post_request("#{PATH}/authenticate/start", request)
28
32
  end
@@ -72,7 +72,10 @@ module Stytch
72
72
  login_expiration_minutes: nil,
73
73
  signup_expiration_minutes: nil,
74
74
  attributes: {},
75
- code_challenge: nil
75
+ code_challenge: nil,
76
+ user_id: nil,
77
+ session_token: nil,
78
+ session_jwt: nil,
76
79
  )
77
80
  request = {
78
81
  email: email
@@ -84,6 +87,9 @@ module Stytch
84
87
  request[:signup_expiration_minutes] = signup_expiration_minutes unless signup_expiration_minutes.nil?
85
88
  request[:attributes] = attributes if attributes != {}
86
89
  request[:code_challenge] = code_challenge unless code_challenge.nil?
90
+ request[:user_id] = user_id unless user_id.nil?
91
+ request[:session_token] = session_token unless session_token.nil?
92
+ request[:session_jwt] = session_jwt unless session_jwt.nil?
87
93
 
88
94
  post_request("#{PATH}/send", request)
89
95
  end
data/lib/stytch/otps.rb CHANGED
@@ -55,7 +55,10 @@ module Stytch
55
55
  def send(
56
56
  phone_number:,
57
57
  expiration_minutes: nil,
58
- attributes: {}
58
+ attributes: {},
59
+ user_id: nil,
60
+ session_token: nil,
61
+ session_jwt: nil,
59
62
  )
60
63
  request = {
61
64
  phone_number: phone_number,
@@ -63,6 +66,9 @@ module Stytch
63
66
  }
64
67
 
65
68
  request[:attributes] = attributes if attributes != {}
69
+ request[:user_id] = user_id unless user_id.nil?
70
+ request[:session_token] = session_token unless session_token.nil?
71
+ request[:session_jwt] = session_jwt unless session_jwt.nil?
66
72
 
67
73
  post_request("#{PATH}/send", request)
68
74
  end
@@ -97,7 +103,10 @@ module Stytch
97
103
  def send(
98
104
  phone_number:,
99
105
  expiration_minutes: nil,
100
- attributes: {}
106
+ attributes: {},
107
+ user_id: nil,
108
+ session_token: nil,
109
+ session_jwt: nil,
101
110
  )
102
111
  request = {
103
112
  phone_number: phone_number,
@@ -105,6 +114,9 @@ module Stytch
105
114
  }
106
115
 
107
116
  request[:attributes] = attributes if attributes != {}
117
+ request[:user_id] = user_id unless user_id.nil?
118
+ request[:session_token] = session_token unless session_token.nil?
119
+ request[:session_jwt] = session_jwt unless session_jwt.nil?
108
120
 
109
121
  post_request("#{PATH}/send", request)
110
122
  end
@@ -139,7 +151,10 @@ module Stytch
139
151
  def send(
140
152
  email:,
141
153
  expiration_minutes: nil,
142
- attributes: {}
154
+ attributes: {},
155
+ user_id: nil,
156
+ session_token: nil,
157
+ session_jwt: nil,
143
158
  )
144
159
  request = {
145
160
  email: email,
@@ -147,6 +162,9 @@ module Stytch
147
162
  }
148
163
 
149
164
  request[:attributes] = attributes if attributes != {}
165
+ request[:user_id] = user_id unless user_id.nil?
166
+ request[:session_token] = session_token unless session_token.nil?
167
+ request[:session_jwt] = session_jwt unless session_jwt.nil?
150
168
 
151
169
  post_request("#{PATH}/send", request)
152
170
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '3.12.0'
4
+ VERSION = '3.13.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: 3.12.0
4
+ version: 3.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-22 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.0.3
151
+ rubygems_version: 3.0.3.1
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Stytch Ruby Gem