module Roda::RodaPlugins::TokenAuth

Constants

DEFAULTS
VERSION

Public Class Methods

configure(app, opts = {}) click to toggle source
# File lib/roda/plugins/token_auth.rb, line 19
def self.configure(app, opts = {})
  plugin_opts = (app.opts[:token_auth] ||= DEFAULTS)
  app.opts[:token_auth] = plugin_opts.merge(opts)
  app.opts[:token_auth].freeze
end