Module: AuthenticJwt::Grape::AuthMethods

Defined in:
lib/authentic_jwt/grape/auth_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#jwt_payloadObject

Returns the value of attribute jwt_payload.



4
5
6
# File 'lib/authentic_jwt/grape/auth_methods.rb', line 4

def jwt_payload
  @jwt_payload
end

Instance Method Details

#jwt_subObject



6
7
8
9
# File 'lib/authentic_jwt/grape/auth_methods.rb', line 6

def jwt_sub
  return unless jwt_payload
  jwt_payload.sub
end