stytch 4.3.0 → 4.4.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/passwords.rb +14 -1
- data/lib/stytch/sessions.rb +3 -1
- data/lib/stytch/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2a9ecc30de6afe24d2a2bcc37d47d72cdc617f20339b03184b7ce60badc37e5
|
4
|
+
data.tar.gz: 34dc8549f4ccdd667f6bf02a351e0b8bf0292c8027ccb301144e6377013dcfce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 972b2a3aecca06699d3d3ca1a2812f1062ea3bc463d0e0ed274421cf71058b63309daa81c2ae2b5a37de14c38cf9b5dfea80a20d5129f9b3b985bdf761417e24
|
7
|
+
data.tar.gz: 2a58549c33709a42cccb4b29eb791bf471c88c62c7f939e619002f8298be7621c049c63bb1c55fe5d68676e10d3310b677364ef0e67040fc044e3f33ce0a9fa1
|
data/lib/stytch/passwords.rb
CHANGED
@@ -21,16 +21,22 @@ module Stytch
|
|
21
21
|
def create(
|
22
22
|
email:,
|
23
23
|
password:,
|
24
|
+
name: {},
|
24
25
|
session_duration_minutes: nil,
|
25
|
-
session_custom_claims: nil
|
26
|
+
session_custom_claims: nil,
|
27
|
+
trusted_metadata: {},
|
28
|
+
untrusted_metadata: {}
|
26
29
|
)
|
27
30
|
request = {
|
28
31
|
email: email,
|
29
32
|
password: password
|
30
33
|
}
|
31
34
|
|
35
|
+
request[:name] = name if name != {}
|
32
36
|
request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
|
33
37
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
38
|
+
request[:trusted_metadata] = trusted_metadata if trusted_metadata != {}
|
39
|
+
request[:untrusted_metadata] = untrusted_metadata if untrusted_metadata != {}
|
34
40
|
|
35
41
|
post_request(PATH.to_s, request)
|
36
42
|
end
|
@@ -73,6 +79,9 @@ module Stytch
|
|
73
79
|
email:,
|
74
80
|
hash:,
|
75
81
|
hash_type:,
|
82
|
+
name: {},
|
83
|
+
trusted_metadata: {},
|
84
|
+
untrusted_metadata: {},
|
76
85
|
md_5_config: {},
|
77
86
|
argon_2_config: {},
|
78
87
|
sha_1_config: {},
|
@@ -84,6 +93,10 @@ module Stytch
|
|
84
93
|
hash_type: hash_type
|
85
94
|
}
|
86
95
|
|
96
|
+
request[:name] = name if name != {}
|
97
|
+
request[:trusted_metadata] = trusted_metadata if trusted_metadata != {}
|
98
|
+
request[:untrusted_metadata] = untrusted_metadata if untrusted_metadata != {}
|
99
|
+
|
87
100
|
request[:md_5_config] = md_5_config unless md_5_config != {}
|
88
101
|
request[:argon_2_config] = argon_2_config unless argon_2_config != {}
|
89
102
|
request[:sha_1_config] = sha_1_config unless sha_1_config != {}
|
data/lib/stytch/sessions.rb
CHANGED
@@ -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
|
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: 4.
|
4
|
+
version: 4.4.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: 2023-
|
11
|
+
date: 2023-03-29 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.
|
153
|
-
signing_key:
|
152
|
+
rubygems_version: 3.1.4
|
153
|
+
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Stytch Ruby Gem
|
156
156
|
test_files: []
|