lib/fridge/rails_helpers.rb
# Validates token, and raises an exception if invalid
Validates token, and raises an exception if invalid
Validates token and raises an exception if invalid
def validate_token!(access_token)
      validator = Fridge.configuration.validator
      if validator.call(access_token)
        access_token
      else
        fail InvalidToken
      end
    end
def validate_token! ( access_token ) validator = Fridge . configuration . validator if validator . call ( access_token ) access_token else fail InvalidToken end end
Validates token, and raises an exception if invalid
Validates token and raises an exception if invalid
access_token
<not_specific>