stytch 4.2.0 → 4.3.1

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: 725434b403349ae18b507dd01095d9047024b2776ae8b4e516ed3763c5a1c306
4
- data.tar.gz: 0b904b1ce0bcd4ba40ce1ef126a8f4001c52e12afa9c093da7c4d9c0e4bbefcc
3
+ metadata.gz: f219fb6d4229d63ba1b65af614d31cae64ab44e139e17babd3063147a44d49e7
4
+ data.tar.gz: 9d4180197e58f77c20019ea48178347f4f74b76c3260b1ba9d1cdb8df096abd3
5
5
  SHA512:
6
- metadata.gz: 6cb1588c122f9d4faa511d082aeb2645a1d6a047e8b0ff5aec3b81da996e9facd9a2943e2135fdcc9e0b06a354a9aa3f7eedd0d66c978974852e718e1bc780ad
7
- data.tar.gz: 890d74ccb272c78c13b09a23175339c694271c2cb9e59bfa9a5ab7d838e81cb237798f42606fe9498dfbdedd05ffa95325e3f2ebfcdae07766af17af71ee3598
6
+ metadata.gz: 686beb70fe69bf487b051a05a436c0dbd8b162a8b51423b3bdd05f20b32f11675568cc565526c974b5cd2437fe1b5ffb1c45def8ad92370ac99fabfc636e9ec4
7
+ data.tar.gz: 1663b04992bd745b83413175819ee8adaa950e487a028846dd77bd23e5d994dc889daedb9882decb045c21263dd0b2a6cb578653bc0d44ca7add548e07352da7
@@ -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
@@ -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
@@ -57,12 +57,14 @@ module Stytch
57
57
 
58
58
  def revoke(
59
59
  session_id: nil,
60
- session_token: nil
60
+ session_token: nil,
61
+ session_jwt: nil
61
62
  )
62
63
  request = {}
63
64
 
64
65
  request[:session_id] = session_id unless session_id.nil?
65
66
  request[:session_token] = session_token unless session_token.nil?
67
+ request[:session_jwt] = session_jwt unless session_jwt.nil?
66
68
 
67
69
  post_request("#{PATH}/revoke", request)
68
70
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '4.2.0'
4
+ VERSION = '4.3.1'
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: 4.2.0
4
+ version: 4.3.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-12-12 00:00:00.000000000 Z
11
+ date: 2023-03-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.6
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: []