stytch 3.14.0 → 3.15.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/users.rb +10 -2
- 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: 877bbf928a020bfd70bbd7fb80c293dfa0e9f6917cb1c55236fa875c5c88c291
|
4
|
+
data.tar.gz: 16b19e1a4799f4b3c6318aa50fc16dd8146713be7fedd634cbef59308416ec33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c08f2d69315af27f9509ebd7d211683aa9eb2dab019bb511d77002cfcddebee1f886a1ca86c52858e3f56df90fc0e09f07508a5dcb5eb86715d727ba617c79b
|
7
|
+
data.tar.gz: c4febeb5378922394803bfae81116e08fad5bc0357602f24ee0faab7613df9bebd656f13f1f4b4b34395f0bbbb27b060a2febdc5ff1528aa856cef38e8f05a88
|
data/lib/stytch/users.rb
CHANGED
@@ -59,7 +59,9 @@ module Stytch
|
|
59
59
|
phone_number: nil,
|
60
60
|
name: {},
|
61
61
|
create_user_as_pending: false,
|
62
|
-
attributes: {}
|
62
|
+
attributes: {},
|
63
|
+
trusted_metadata: {},
|
64
|
+
untrusted_metadata: {}
|
63
65
|
)
|
64
66
|
request = {
|
65
67
|
email: email,
|
@@ -69,6 +71,8 @@ module Stytch
|
|
69
71
|
|
70
72
|
request[:name] = name if name != {}
|
71
73
|
request[:attributes] = attributes if attributes != {}
|
74
|
+
request[:trusted_metadata] = trusted_metadata if trusted_metadata != {}
|
75
|
+
request[:untrusted_metadata] = untrusted_metadata if untrusted_metadata != {}
|
72
76
|
|
73
77
|
post_request(PATH, request)
|
74
78
|
end
|
@@ -79,7 +83,9 @@ module Stytch
|
|
79
83
|
emails: [],
|
80
84
|
phone_numbers: [],
|
81
85
|
crypto_wallets: [],
|
82
|
-
attributes: {}
|
86
|
+
attributes: {},
|
87
|
+
trusted_metadata: {},
|
88
|
+
untrusted_metadata: {}
|
83
89
|
)
|
84
90
|
request = {
|
85
91
|
emails: format_emails(emails),
|
@@ -89,6 +95,8 @@ module Stytch
|
|
89
95
|
|
90
96
|
request[:name] = name if name != {}
|
91
97
|
request[:attributes] = attributes if attributes != {}
|
98
|
+
request[:trusted_metadata] = trusted_metadata if trusted_metadata != {}
|
99
|
+
request[:untrusted_metadata] = untrusted_metadata if untrusted_metadata != {}
|
92
100
|
|
93
101
|
put_request("#{PATH}/#{user_id}", request)
|
94
102
|
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: 3.
|
4
|
+
version: 3.15.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-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|