Class: Minato::Rails::Auth::JWT::Decode

Inherits:
Object
  • Object
show all
Defined in:
lib/minato/rails/auth/jwt/decode.rb

Class Method Summary collapse

Class Method Details

.call(jwt) ⇒ Object



8
9
10
11
12
13
# File 'lib/minato/rails/auth/jwt/decode.rb', line 8

def self.call(jwt)
  ::JWT.decode(jwt,
               Auth::CONFIG.jwt.hmac_secret,
               Auth::CONFIG.jwt.verify_token_signature,
               Auth::CONFIG.jwt.decode_params).first
end