Module: G5AuthenticatableApi::Helpers::Grape

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

Instance Method Summary collapse

Instance Method Details

#authenticate_user!Object



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

def authenticate_user!
  raise_auth_error if !token_validator.valid?
end

#wardenObject



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

def warden
  env['warden']
end