stytch 4.2.0 → 4.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/magic_links.rb +13 -3
- data/lib/stytch/otps.rb +10 -2
- data/lib/stytch/passwords.rb +3 -1
- 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: ef48cc9ac6a3d58d62bd3ffe36775a0861bee25b2d529ecf86f4a2f0eef48493
|
4
|
+
data.tar.gz: ecf84abd144f031e9fcf9e8ef849f43fda9e804421701207a051bceac8d6aee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0bbb4c985f965823d8b528825ea49bbb07d55d67816ffbe492466e3cfbe031772784ad4b272138db46c04c43fdcaa286435a0bf77d70c7f41aabdcbfa3ad860
|
7
|
+
data.tar.gz: 6a233a7e08c00427ef9eeca47193a8c448856bb497b92b6362f6803ae48221950af2885ab0c04a5e3540baa5ab6bdd2512d61710f78093bccfeca81c9ab44d82
|
data/lib/stytch/magic_links.rb
CHANGED
@@ -76,7 +76,9 @@ module Stytch
|
|
76
76
|
user_id: nil,
|
77
77
|
session_token: nil,
|
78
78
|
session_jwt: nil,
|
79
|
-
locale: nil
|
79
|
+
locale: nil,
|
80
|
+
login_template_id: nil,
|
81
|
+
signup_template_id: nil
|
80
82
|
)
|
81
83
|
request = {
|
82
84
|
email: email
|
@@ -92,6 +94,8 @@ module Stytch
|
|
92
94
|
request[:session_token] = session_token unless session_token.nil?
|
93
95
|
request[:session_jwt] = session_jwt unless session_jwt.nil?
|
94
96
|
request[:locale] = locale unless locale.nil?
|
97
|
+
request[:login_template_id] = login_template_id unless login_template_id.nil?
|
98
|
+
request[:signup_template_id] = signup_template_id unless signup_template_id.nil?
|
95
99
|
|
96
100
|
post_request("#{PATH}/send", request)
|
97
101
|
end
|
@@ -105,7 +109,9 @@ module Stytch
|
|
105
109
|
attributes: {},
|
106
110
|
create_user_as_pending: false,
|
107
111
|
code_challenge: nil,
|
108
|
-
locale: nil
|
112
|
+
locale: nil,
|
113
|
+
login_template_id: nil,
|
114
|
+
signup_template_id: nil
|
109
115
|
)
|
110
116
|
request = {
|
111
117
|
email: email,
|
@@ -119,6 +125,8 @@ module Stytch
|
|
119
125
|
request[:attributes] = attributes if attributes != {}
|
120
126
|
request[:code_challenge] = code_challenge unless code_challenge.nil?
|
121
127
|
request[:locale] = locale unless locale.nil?
|
128
|
+
request[:login_template_id] = login_template_id unless login_template_id.nil?
|
129
|
+
request[:signup_template_id] = signup_template_id unless signup_template_id.nil?
|
122
130
|
|
123
131
|
post_request("#{PATH}/login_or_create", request)
|
124
132
|
end
|
@@ -129,7 +137,8 @@ module Stytch
|
|
129
137
|
invite_expiration_minutes: nil,
|
130
138
|
attributes: {},
|
131
139
|
name: {},
|
132
|
-
locale: nil
|
140
|
+
locale: nil,
|
141
|
+
invite_template_id: nil
|
133
142
|
)
|
134
143
|
request = {
|
135
144
|
email: email
|
@@ -140,6 +149,7 @@ module Stytch
|
|
140
149
|
request[:attributes] = attributes if attributes != {}
|
141
150
|
request[:name] = name if name != {}
|
142
151
|
request[:locale] = locale unless locale.nil?
|
152
|
+
request[:invite_template_id] = invite_template_id unless invite_template_id.nil?
|
143
153
|
|
144
154
|
post_request("#{PATH}/invite", request)
|
145
155
|
end
|
data/lib/stytch/otps.rb
CHANGED
@@ -163,7 +163,9 @@ module Stytch
|
|
163
163
|
user_id: nil,
|
164
164
|
session_token: nil,
|
165
165
|
session_jwt: nil,
|
166
|
-
locale: nil
|
166
|
+
locale: nil,
|
167
|
+
login_template_id: nil,
|
168
|
+
signup_template_id: nil
|
167
169
|
)
|
168
170
|
request = {
|
169
171
|
email: email,
|
@@ -175,6 +177,8 @@ module Stytch
|
|
175
177
|
request[:session_token] = session_token unless session_token.nil?
|
176
178
|
request[:session_jwt] = session_jwt unless session_jwt.nil?
|
177
179
|
request[:locale] = locale unless locale.nil?
|
180
|
+
request[:login_template_id] = login_template_id unless login_template_id.nil?
|
181
|
+
request[:signup_template_id] = signup_template_id unless signup_template_id.nil?
|
178
182
|
|
179
183
|
post_request("#{PATH}/send", request)
|
180
184
|
end
|
@@ -184,7 +188,9 @@ module Stytch
|
|
184
188
|
expiration_minutes: nil,
|
185
189
|
attributes: {},
|
186
190
|
create_user_as_pending: false,
|
187
|
-
locale: nil
|
191
|
+
locale: nil,
|
192
|
+
login_template_id: nil,
|
193
|
+
signup_template_id: nil
|
188
194
|
)
|
189
195
|
request = {
|
190
196
|
email: email,
|
@@ -194,6 +200,8 @@ module Stytch
|
|
194
200
|
|
195
201
|
request[:attributes] = attributes if attributes != {}
|
196
202
|
request[:locale] = locale unless locale.nil?
|
203
|
+
request[:login_template_id] = login_template_id unless login_template_id.nil?
|
204
|
+
request[:signup_template_id] = signup_template_id unless signup_template_id.nil?
|
197
205
|
|
198
206
|
post_request("#{PATH}/login_or_create", request)
|
199
207
|
end
|
data/lib/stytch/passwords.rb
CHANGED
@@ -108,7 +108,8 @@ module Stytch
|
|
108
108
|
reset_password_expiration_minutes: nil,
|
109
109
|
attributes: {},
|
110
110
|
code_challenge: nil,
|
111
|
-
locale: nil
|
111
|
+
locale: nil,
|
112
|
+
reset_password_template_id: nil
|
112
113
|
)
|
113
114
|
request = {
|
114
115
|
email: email
|
@@ -123,6 +124,7 @@ module Stytch
|
|
123
124
|
request[:attributes] = attributes if attributes != {}
|
124
125
|
request[:code_challenge] = code_challenge unless code_challenge.nil?
|
125
126
|
request[:locale] = locale unless locale.nil?
|
127
|
+
request[:reset_password_template_id] = reset_password_template_id unless reset_password_template_id.nil?
|
126
128
|
|
127
129
|
post_request("#{PATH}/reset/start", request)
|
128
130
|
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: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-13 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.11.0
|
95
|
-
description:
|
95
|
+
description:
|
96
96
|
email:
|
97
97
|
- support@stytch.com
|
98
98
|
executables: []
|
@@ -134,7 +134,7 @@ licenses:
|
|
134
134
|
metadata:
|
135
135
|
homepage_uri: https://stytch.com
|
136
136
|
source_code_uri: https://github.com/stytchauth/stytch-ruby
|
137
|
-
post_install_message:
|
137
|
+
post_install_message:
|
138
138
|
rdoc_options: []
|
139
139
|
require_paths:
|
140
140
|
- lib
|
@@ -149,8 +149,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.1
|
153
|
-
signing_key:
|
152
|
+
rubygems_version: 3.0.3.1
|
153
|
+
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Stytch Ruby Gem
|
156
156
|
test_files: []
|