stytch 3.11.0 → 3.13.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/crypto_wallets.rb +5 -1
- data/lib/stytch/magic_links.rb +7 -1
- data/lib/stytch/otps.rb +21 -3
- data/lib/stytch/users.rb +6 -0
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aea3ae56778d9f46f0da8e961e04fb6338d60fe3ee7454e5965e91b5f4f6bc8a
|
4
|
+
data.tar.gz: f0fddb02877ccb643ee0c1ca36cf705e85b42c54df587af1db27b439155a8b0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 426e417c7bf372f4d0ff45101e2830448a9823224cc43d15e9bb732cbe788ab0407d07297d6aed9e59771a49355f295796aed42e2909c1e264a9e537dc8b0a74
|
7
|
+
data.tar.gz: 2b9c750eb2111e77561f37cbd184b89b776f7e6b3dd01516c19008b3132c9861f0543f3535ac8abfe2e7c438f4cbe1b1847321e4be8a950e85c2b9c857c506ad
|
@@ -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/users.rb
CHANGED
@@ -133,6 +133,12 @@ module Stytch
|
|
133
133
|
delete_request("#{PATH}/passwords/#{password_id}")
|
134
134
|
end
|
135
135
|
|
136
|
+
def delete_biometric_registration(
|
137
|
+
biometric_registration_id:
|
138
|
+
)
|
139
|
+
delete_request("#{PATH}/biometric_registrations/#{biometric_registration_id}")
|
140
|
+
end
|
141
|
+
|
136
142
|
private
|
137
143
|
|
138
144
|
def format_emails(emails)
|
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.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|