Sha256: 0bf0297161581d986e2653ee224cacd5b1a68a2357bdc66153b767f2589423cf

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

module ActiveRecord::Jwt
  class EncoderConfiguration
    attr_accessor :sub, :algorithm, :key, :exp, :iss, :aud

    def initialize
      self.sub       = :id
      self.algorithm = 'HS256'
      self.exp       = 600
      self.iss       = 'issuer'
      self.aud       = 'audience'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-jwt-0.0.1 lib/activerecord-jwt/encoder_configuration.rb