Module: G5AuthenticatableApi::Helpers::Rails

Defined in:
lib/g5_authenticatable_api/helpers/rails.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_api_user!Object



6
7
8
# File 'lib/g5_authenticatable_api/helpers/rails.rb', line 6

def authenticate_api_user!
  raise_auth_error if !token_validator.valid?
end

#wardenObject



10
11
12
# File 'lib/g5_authenticatable_api/helpers/rails.rb', line 10

def warden
  request.env['warden']
end