stytch 4.0.0 → 4.1.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: 5735adbe52a4981a285f505001ccf36e857c0a4714e3acd227ba58e11bbdcd80
4
- data.tar.gz: 7fa2f0e2c8fe17ab6424b8c60b7953a88bd26b68fec13cb8fc841f79d24d45b2
3
+ metadata.gz: 6107b46deb061cbc3665c9070b63e74f179beb2ac419ecf72970d633f9c94678
4
+ data.tar.gz: 554667f467d1a7dac968659ddeb5f08e1f13ee5de7d740f2f6b56c0749fe945d
5
5
  SHA512:
6
- metadata.gz: 0fefbed66bc56fb3d25c070add5271fdadbb6c764f44fe893a93b1b640a4564c1913149d1d643aba054afe356efe5ac8241a086c78bd0fbc766091970c6d7bf5
7
- data.tar.gz: c3f4bc7b0eddd491ae127d6d5c4c4f939e7468db42a8c07a55905ba4d2b3b6b9e67b6c040ea5c44cfa50460f07e93c51ff66b270391fcf8b832a0149724ec080
6
+ metadata.gz: f804a726ee640fedc2100c36e0db12a01d614ea63436fd7fd0ce206524a0b22666fc831f8779861f9e9ff4756009f2fc4b984f3f9e9631bf5c068c38e6e8438b
7
+ data.tar.gz: 2ed2d4aa1346fa3d5d422a82873660d88581d3bfbe87ec267ffb392eb31b34fc6a7d9b985c575967e07a84b31b3f092c9f98794acb9faf53380a3d94565332c8
@@ -75,7 +75,8 @@ module Stytch
75
75
  code_challenge: nil,
76
76
  user_id: nil,
77
77
  session_token: nil,
78
- session_jwt: nil
78
+ session_jwt: nil,
79
+ locale: nil
79
80
  )
80
81
  request = {
81
82
  email: email
@@ -90,6 +91,7 @@ module Stytch
90
91
  request[:user_id] = user_id unless user_id.nil?
91
92
  request[:session_token] = session_token unless session_token.nil?
92
93
  request[:session_jwt] = session_jwt unless session_jwt.nil?
94
+ request[:locale] = locale unless locale.nil?
93
95
 
94
96
  post_request("#{PATH}/send", request)
95
97
  end
@@ -102,7 +104,8 @@ module Stytch
102
104
  signup_expiration_minutes: nil,
103
105
  attributes: {},
104
106
  create_user_as_pending: false,
105
- code_challenge: nil
107
+ code_challenge: nil,
108
+ locale: nil
106
109
  )
107
110
  request = {
108
111
  email: email,
@@ -115,6 +118,7 @@ module Stytch
115
118
  request[:signup_expiration_minutes] = signup_expiration_minutes unless signup_expiration_minutes.nil?
116
119
  request[:attributes] = attributes if attributes != {}
117
120
  request[:code_challenge] = code_challenge unless code_challenge.nil?
121
+ request[:locale] = locale unless locale.nil?
118
122
 
119
123
  post_request("#{PATH}/login_or_create", request)
120
124
  end
@@ -124,7 +128,8 @@ module Stytch
124
128
  invite_magic_link_url: nil,
125
129
  invite_expiration_minutes: nil,
126
130
  attributes: {},
127
- name: {}
131
+ name: {},
132
+ locale: nil
128
133
  )
129
134
  request = {
130
135
  email: email
@@ -134,6 +139,7 @@ module Stytch
134
139
  request[:invite_expiration_minutes] = invite_expiration_minutes unless invite_expiration_minutes.nil?
135
140
  request[:attributes] = attributes if attributes != {}
136
141
  request[:name] = name if name != {}
142
+ request[:locale] = locale unless locale.nil?
137
143
 
138
144
  post_request("#{PATH}/invite", request)
139
145
  end
data/lib/stytch/otps.rb CHANGED
@@ -58,7 +58,8 @@ module Stytch
58
58
  attributes: {},
59
59
  user_id: nil,
60
60
  session_token: nil,
61
- session_jwt: nil
61
+ session_jwt: nil,
62
+ locale: nil
62
63
  )
63
64
  request = {
64
65
  phone_number: phone_number,
@@ -69,6 +70,7 @@ module Stytch
69
70
  request[:user_id] = user_id unless user_id.nil?
70
71
  request[:session_token] = session_token unless session_token.nil?
71
72
  request[:session_jwt] = session_jwt unless session_jwt.nil?
73
+ request[:locale] = locale unless locale.nil?
72
74
 
73
75
  post_request("#{PATH}/send", request)
74
76
  end
@@ -77,7 +79,8 @@ module Stytch
77
79
  phone_number:,
78
80
  expiration_minutes: nil,
79
81
  attributes: {},
80
- create_user_as_pending: false
82
+ create_user_as_pending: false,
83
+ locale: nil
81
84
  )
82
85
  request = {
83
86
  phone_number: phone_number,
@@ -86,6 +89,7 @@ module Stytch
86
89
  }
87
90
 
88
91
  request[:attributes] = attributes if attributes != {}
92
+ request[:locale] = locale unless locale.nil?
89
93
 
90
94
  post_request("#{PATH}/login_or_create", request)
91
95
  end
@@ -106,7 +110,8 @@ module Stytch
106
110
  attributes: {},
107
111
  user_id: nil,
108
112
  session_token: nil,
109
- session_jwt: nil
113
+ session_jwt: nil,
114
+ locale: nil
110
115
  )
111
116
  request = {
112
117
  phone_number: phone_number,
@@ -117,6 +122,7 @@ module Stytch
117
122
  request[:user_id] = user_id unless user_id.nil?
118
123
  request[:session_token] = session_token unless session_token.nil?
119
124
  request[:session_jwt] = session_jwt unless session_jwt.nil?
125
+ request[:locale] = locale unless locale.nil?
120
126
 
121
127
  post_request("#{PATH}/send", request)
122
128
  end
@@ -125,7 +131,8 @@ module Stytch
125
131
  phone_number:,
126
132
  expiration_minutes: nil,
127
133
  attributes: {},
128
- create_user_as_pending: false
134
+ create_user_as_pending: false,
135
+ locale: nil
129
136
  )
130
137
  request = {
131
138
  phone_number: phone_number,
@@ -134,6 +141,7 @@ module Stytch
134
141
  }
135
142
 
136
143
  request[:attributes] = attributes if attributes != {}
144
+ request[:locale] = locale unless locale.nil?
137
145
 
138
146
  post_request("#{PATH}/login_or_create", request)
139
147
  end
@@ -154,7 +162,8 @@ module Stytch
154
162
  attributes: {},
155
163
  user_id: nil,
156
164
  session_token: nil,
157
- session_jwt: nil
165
+ session_jwt: nil,
166
+ locale: nil
158
167
  )
159
168
  request = {
160
169
  email: email,
@@ -165,6 +174,7 @@ module Stytch
165
174
  request[:user_id] = user_id unless user_id.nil?
166
175
  request[:session_token] = session_token unless session_token.nil?
167
176
  request[:session_jwt] = session_jwt unless session_jwt.nil?
177
+ request[:locale] = locale unless locale.nil?
168
178
 
169
179
  post_request("#{PATH}/send", request)
170
180
  end
@@ -173,7 +183,8 @@ module Stytch
173
183
  email:,
174
184
  expiration_minutes: nil,
175
185
  attributes: {},
176
- create_user_as_pending: false
186
+ create_user_as_pending: false,
187
+ locale: nil
177
188
  )
178
189
  request = {
179
190
  email: email,
@@ -182,6 +193,7 @@ module Stytch
182
193
  }
183
194
 
184
195
  request[:attributes] = attributes if attributes != {}
196
+ request[:locale] = locale unless locale.nil?
185
197
 
186
198
  post_request("#{PATH}/login_or_create", request)
187
199
  end
@@ -107,7 +107,8 @@ module Stytch
107
107
  reset_password_redirect_url: nil,
108
108
  reset_password_expiration_minutes: nil,
109
109
  attributes: {},
110
- code_challenge: nil
110
+ code_challenge: nil,
111
+ locale: nil
111
112
  )
112
113
  request = {
113
114
  email: email
@@ -121,6 +122,7 @@ module Stytch
121
122
  end
122
123
  request[:attributes] = attributes if attributes != {}
123
124
  request[:code_challenge] = code_challenge unless code_challenge.nil?
125
+ request[:locale] = locale unless locale.nil?
124
126
 
125
127
  post_request("#{PATH}/reset/start", request)
126
128
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '4.0.0'
4
+ VERSION = '4.1.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: 4.0.0
4
+ version: 4.1.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: 2022-11-29 00:00:00.000000000 Z
11
+ date: 2022-12-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.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: []