Skip to content

Warning while getting Bearer Token #4

Description

@AnnaKL

I've followed README to get App-only Bearer Token.

require 'twitter_oauth2'

client = TwitterOAuth2::Client.new(
  # NOTE: not OAuth 2.0 Client ID, but OAuth 1.0 Consumer Key (a.k.a API Key)
  identifier:     '<YOUR-CONSUMER-KEY>',
  # NOTE: not OAuth 2.0 Client Secret, but OAuth 1.0 Consumer Secret (a.k.a API Key Secret)
  secret:         '<YOUR-CONSUMER-SECRET>'
  # NOTE: Twitter has Client Credentials Grant specific token endpoint.
  token_endpoint: '/oauth2/token',
)

client.access_token!

Im getting following warnings when client.access_token! is executed.

Unknown key: Max-Age = 34214400
Unknown key: SameSite = None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions