Sha256: a3d3d878079cc24f6a40d551a3c334ead5b5c5616411882e4b1d2e0bd692bec5

Contents?: true

Size: 660 Bytes

Versions: 3

Compression:

Stored size: 660 Bytes

Contents

# frozen_string_literal: true

require_relative 'configuration/container'

module JWT
  # The Configuration module provides methods to configure JWT settings.
  module Configuration
    # Configures the JWT settings.
    #
    # @yield [config] Gives the current configuration to the block.
    # @yieldparam config [JWT::Configuration::Container] the configuration container.
    def configure
      yield(configuration)
    end

    # Returns the JWT configuration container.
    #
    # @return [JWT::Configuration::Container] the configuration container.
    def configuration
      @configuration ||= ::JWT::Configuration::Container.new
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/jwt-2.10.1/lib/jwt/configuration.rb
jwt-2.10.1 lib/jwt/configuration.rb
jwt-2.10.0 lib/jwt/configuration.rb