stytch 3.12.0 → 3.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/crypto_wallets.rb +5 -1
- data/lib/stytch/magic_links.rb +7 -1
- data/lib/stytch/otps.rb +21 -3
- data/lib/stytch/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 342f8e5de5fd70f14a41eb1f3fbc46a08fbf071a8a845ba72a8bf3ae510ab4fe
|
4
|
+
data.tar.gz: cc682eedd57c0d1728e16a232f1437b182e8d6fa4f97023073df9787c03907e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cb3d10c180f68c55f8392ddd077a83538f9e77b86f9b21d9dc7efad72d910238d965871fb0cd8f2901d6ed6bcc7d95f665783b5f672704b8790e4754e17c49e
|
7
|
+
data.tar.gz: 6d3a8f0595d5f7a3bc0a9b1a642f0b47cbab2f2297f28027e0f96b0938eeb734623a10f360efa9043eb5a917dbd6844c7df7e0d9c1da8e058a8827bf75af9cfd
|
@@ -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
|
data/lib/stytch/magic_links.rb
CHANGED
@@ -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
|
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: 3.
|
4
|
+
version: 3.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: 3.5.3
|
95
|
-
description:
|
95
|
+
description:
|
96
96
|
email:
|
97
97
|
- support@stytch.com
|
98
98
|
executables: []
|
@@ -133,7 +133,7 @@ licenses:
|
|
133
133
|
metadata:
|
134
134
|
homepage_uri: https://stytch.com
|
135
135
|
source_code_uri: https://github.com/stytchauth/stytch-ruby
|
136
|
-
post_install_message:
|
136
|
+
post_install_message:
|
137
137
|
rdoc_options: []
|
138
138
|
require_paths:
|
139
139
|
- lib
|
@@ -148,8 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
152
|
-
signing_key:
|
151
|
+
rubygems_version: 3.1.6
|
152
|
+
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Stytch Ruby Gem
|
155
155
|
test_files: []
|