Sha256: 3b1c5cf245be33d80e722ac8ae92f14e206cd17abf046be70ae17c3b7960eae9

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

module SolidusJwt
  module DeviseStrategies
    class Base < Devise::Strategies::Authenticatable
      def valid?
        valid_grant_type? && valid_params?
      end

      private

      def grant_type
        params[:grant_type]
      end

      def valid_grant_type?
        raise NotImplementedError
      end

      def valid_params?
        raise NotImplementedError
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_jwt-1.2.2 lib/solidus_jwt/devise_strategies/base.rb
solidus_jwt-1.2.1 lib/solidus_jwt/devise_strategies/base.rb
solidus_jwt-1.2.0 lib/solidus_jwt/devise_strategies/base.rb