Sha256: 89b3d05e64e68a76d79c907da75e016745977b3dbbbf130785db94bb935ee615
Contents?: true
Size: 603 Bytes
Versions: 8
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true require 'active_support/concern' module Devise module Models # Model that will be authenticatable with the JWT strategy # # @see [Warden::JWTAuth::Interfaces::UserRepository] # @see [Warden::JWTAuth::Interfaces::User] module JwtAuthenticatable extend ActiveSupport::Concern class_methods do Devise::Models.config(self, :jwt_revocation_strategy) end included do def self.find_for_jwt_authentication(sub) find(sub) end end def jwt_subject id end end end end
Version data entries
8 entries across 8 versions & 1 rubygems