stytch 3.2.1 → 3.3.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: 9ae3fdbca4b9b650bd1efe53244d9752888ec610edfb92393b3c593d638ac219
4
- data.tar.gz: 49d50b9bf2b9544bfc93b3e586fdf89efeefe3837bd1df07ce9eabdf9df1397c
3
+ metadata.gz: c8df42027eb062c7be0ddfbe1f1ee11eece832c7ca442391421f7355a072c77e
4
+ data.tar.gz: 8df5887ad55b4f1c32efdcccf1873ffd371c4d2df3278ffbf290b1868cc56dad
5
5
  SHA512:
6
- metadata.gz: b2e8a04d1eed6cced36ad8568b52794d3ca33ba181637739ec47553ba44957c72f5e1a1820c2a083005a69b5a204cb7946d73c58c342321bd87bd74a951ceb4f
7
- data.tar.gz: 145f04af5a49a3a7d40f96fd35c9947e642e192e2d8fc7b572f12ed8d5dc3a22a7e5594bb94b68799fa380d9d233c90266e497ab86463c6ada6cf8144b64df73
6
+ metadata.gz: fec2e73072c90bfc9d5d8c0ff7c29ccbb41e9979d117b1f5a91f2492a83a1f576390debf250a4e17d767a65d708799f48a4222ec79d4bddf27b79d3788f5670a
7
+ data.tar.gz: 77e7d520386a75d66b9aefc5052a93094d297d0764c5d7dc0c08757e9234c63ed0ead8cc17d9dd9160b404ea11c62ace810896e9b8c7dc98fa1a965bf0b7e6b6
@@ -37,7 +37,8 @@ module Stytch
37
37
  options: {},
38
38
  session_token: nil,
39
39
  session_jwt: nil,
40
- session_duration_minutes: nil
40
+ session_duration_minutes: nil,
41
+ code_verifier: nil
41
42
  )
42
43
  request = {
43
44
  token: token
@@ -48,6 +49,7 @@ module Stytch
48
49
  request[:session_token] = session_token unless session_token.nil?
49
50
  request[:session_jwt] = session_jwt unless session_jwt.nil?
50
51
  request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
52
+ request[:code_verifier] = code_verifier unless code_verifier.nil?
51
53
 
52
54
  post_request("#{PATH}/authenticate", request)
53
55
  end
@@ -67,7 +69,8 @@ module Stytch
67
69
  signup_magic_link_url: nil,
68
70
  login_expiration_minutes: nil,
69
71
  signup_expiration_minutes: nil,
70
- attributes: {}
72
+ attributes: {},
73
+ code_challenge: nil
71
74
  )
72
75
  request = {
73
76
  email: email
@@ -78,6 +81,7 @@ module Stytch
78
81
  request[:login_expiration_minutes] = login_expiration_minutes unless login_expiration_minutes.nil?
79
82
  request[:signup_expiration_minutes] = signup_expiration_minutes unless signup_expiration_minutes.nil?
80
83
  request[:attributes] = attributes if attributes != {}
84
+ request[:code_challenge] = code_challenge unless code_challenge.nil?
81
85
 
82
86
  post_request("#{PATH}/send", request)
83
87
  end
@@ -89,7 +93,8 @@ module Stytch
89
93
  login_expiration_minutes: nil,
90
94
  signup_expiration_minutes: nil,
91
95
  attributes: {},
92
- create_user_as_pending: false
96
+ create_user_as_pending: false,
97
+ code_challenge: nil
93
98
  )
94
99
  request = {
95
100
  email: email,
@@ -101,6 +106,7 @@ module Stytch
101
106
  request[:login_expiration_minutes] = login_expiration_minutes unless login_expiration_minutes.nil?
102
107
  request[:signup_expiration_minutes] = signup_expiration_minutes unless signup_expiration_minutes.nil?
103
108
  request[:attributes] = attributes if attributes != {}
109
+ request[:code_challenge] = code_challenge unless code_challenge.nil?
104
110
 
105
111
  post_request("#{PATH}/login_or_create", request)
106
112
  end
data/lib/stytch/oauth.rb CHANGED
@@ -16,7 +16,8 @@ module Stytch
16
16
  token:,
17
17
  session_token: nil,
18
18
  session_jwt: nil,
19
- session_duration_minutes: nil
19
+ session_duration_minutes: nil,
20
+ code_verifier: nil
20
21
  )
21
22
  request = {
22
23
  token: token
@@ -24,6 +25,7 @@ module Stytch
24
25
  request[:session_token] = session_token unless session_token.nil?
25
26
  request[:session_jwt] = session_jwt unless session_jwt.nil?
26
27
  request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
28
+ request[:code_verifier] = code_verifier unless code_verifier.nil?
27
29
 
28
30
  post_request("#{PATH}/authenticate", request)
29
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '3.2.1'
4
+ VERSION = '3.3.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.2.1
4
+ version: 3.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: 2022-05-04 00:00:00.000000000 Z
11
+ date: 2022-06-01 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: []
@@ -132,7 +132,7 @@ licenses:
132
132
  metadata:
133
133
  homepage_uri: https://stytch.com
134
134
  source_code_uri: https://github.com/stytchauth/stytch-ruby
135
- post_install_message:
135
+ post_install_message:
136
136
  rdoc_options: []
137
137
  require_paths:
138
138
  - lib
@@ -147,8 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.1.6
151
- signing_key:
150
+ rubygems_version: 3.0.3.1
151
+ signing_key:
152
152
  specification_version: 4
153
153
  summary: Stytch Ruby Gem
154
154
  test_files: []