stytch 9.11.0 → 9.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stytch/m2m.rb +2 -1
- data/lib/stytch/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31d44c194afd59e9b42879171d6e1d77863d9bd0f8d1300d4fd897c93ca8c988
|
4
|
+
data.tar.gz: 64a4c40688e032484204a4ed682f0577222449826f8618c77314025c1e892ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf8d6d3c2ca4ae6bee93c50f0df02373f63a3624ecb8ff8c1648b3322f318ce8cccb390d5821a5d4e51cb385f3d1cde40ef5b0c1c0a2b530e5dd5cb683ce5627
|
7
|
+
data.tar.gz: 8b9ba037fd6d93f327acfac6d1d211f17bbdc65f7b720b0704b7d35c4fc2aa1dd7e2997ae9d3f46f8792587ce39cbb92051f6b457eeef53e6d05cb94b0abe58d
|
data/lib/stytch/m2m.rb
CHANGED
@@ -75,6 +75,7 @@ module Stytch
|
|
75
75
|
# The type of the returned access token. Today, this value will always be equal to "bearer"
|
76
76
|
# The type of this field is +String+.
|
77
77
|
def token(client_id:, client_secret:, scopes: nil)
|
78
|
+
headers = {}
|
78
79
|
request = {
|
79
80
|
grant_type: 'client_credentials',
|
80
81
|
client_id: client_id,
|
@@ -82,7 +83,7 @@ module Stytch
|
|
82
83
|
}
|
83
84
|
request[:scope] = scopes.join(' ') unless scopes.nil?
|
84
85
|
|
85
|
-
|
86
|
+
post_request("/v1/public/#{@project_id}/oauth2/token", request, headers)
|
86
87
|
end
|
87
88
|
# ENDMANUAL(M2M::token)
|
88
89
|
|
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: 9.11.
|
4
|
+
version: 9.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -100,7 +100,7 @@ dependencies:
|
|
100
100
|
- - '='
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 2.24.0
|
103
|
-
description:
|
103
|
+
description:
|
104
104
|
email:
|
105
105
|
- support@stytch.com
|
106
106
|
executables: []
|
@@ -162,7 +162,7 @@ licenses:
|
|
162
162
|
metadata:
|
163
163
|
homepage_uri: https://stytch.com
|
164
164
|
source_code_uri: https://github.com/stytchauth/stytch-ruby
|
165
|
-
post_install_message:
|
165
|
+
post_install_message:
|
166
166
|
rdoc_options: []
|
167
167
|
require_paths:
|
168
168
|
- lib
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubygems_version: 3.2.3
|
181
|
-
signing_key:
|
181
|
+
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Stytch Ruby Gem
|
184
184
|
test_files: []
|