Class: FamilyappSdk::WebhookController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controller/familyapp_sdk/webhook_controller.rb

Instance Method Summary collapse

Instance Method Details

#ensure_request_authorizedObject



3
4
5
# File 'app/controller/familyapp_sdk/webhook_controller.rb', line 3

def ensure_request_authorized
  head :unauthorized if token_from_header != ::FamilyappSdk.config.verify_token
end