Registry / auth / knock
library2.1.1rbrubygemsunverified

Authentication solution for Rails based on JWT.

gem install knock
INSTALL
IMPORT
SIG · KNOCK
K
knock
authrubyv2.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Knock
require 'knock'

Configure Knock and use it for JWT authentication in Rails

require 'knock' # In a Rails app, Knock is typically configured in an initializer Knock.setup do |config| config.token_lifetime = 1.day end # Then used as a controller concern: # class Api::V1::BaseController < ApplicationController # include Knock::Authenticable # end
Debug
Known issues
breakingKnock is no longer actively maintained; consider alternatives like devise-jwt or ruby-jwt.
fix
Migrate to a maintained JWT authentication gem.
affects: >= 2.0.0
Upgrade
Version history
2.1.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
knock — gem install knock · libregistry