stytch 9.11.0 → 9.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c0d28f978709f9fd734d22ec07b9ead2cff5784bf2236e6f7a814ac6112bd4f
4
- data.tar.gz: 99d3ef7c666a37a4bdb62717e4f95f10d5e62a5b4acdd30b53b1bc3b8bcc2fa3
3
+ metadata.gz: 67c4852f9d2c309dd74ecef7bf04bc20d626cdfebf41d1edc4d1ca22b8c21ac5
4
+ data.tar.gz: 78598669744ab68e3d7b6f1353f6f7c3ce4ba9c0f51cfc133fdacf88bcb2cc27
5
5
  SHA512:
6
- metadata.gz: 5a313477adea0a21456f16ab46658d2cd2a218414a4b36bea7078be9c35b7c703bbab26b3453906ec0e0f3cf718230c002c92335bf43174a82018dd4125a0173
7
- data.tar.gz: 016de94dc4b6eefac4f061e03f6269088fb5e5936a2fcf43085f96ee278e0859a190a81e8ccee361da8925862509fc9d3f84e5ab46b03fc030a997ae428a8e39
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '9.11.0'
4
+ VERSION = '9.11.1'
5
5
  end
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2024-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday