stytch 9.11.0 → 9.11.1
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 +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67c4852f9d2c309dd74ecef7bf04bc20d626cdfebf41d1edc4d1ca22b8c21ac5
|
|
4
|
+
data.tar.gz: 78598669744ab68e3d7b6f1353f6f7c3ce4ba9c0f51cfc133fdacf88bcb2cc27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c902ed37382e199a60891fe5084fe05b16e0d8930cd0b37368c16d02616bb705706775aafec4a41dfd0d20b6730caa66f8c54fd323c5889461c86ee9697b620
|
|
7
|
+
data.tar.gz: dbf5815d64e1eb9ab95d0463f193537f9e306a813d5fae72f21792a37a5594a8305337dc7084663604750dce50b4203fb62da47e55a2aa850f5851e733bcb9d6
|
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
|
-
JSON.parse(post_request("/v1/public/#{@project_id}/oauth2/token", request), { symbolize_names: true })
|
|
86
|
+
JSON.parse(post_request("/v1/public/#{@project_id}/oauth2/token", request, headers), { symbolize_names: true })
|
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- stytch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-11-
|
|
11
|
+
date: 2024-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|