Method: SelfSDK::Services::Authentication#subscribe
- Defined in:
- lib/services/auth.rb
permalink #subscribe(&block) ⇒ Object
Adds an observer for an authentication response
98 99 100 101 102 103 |
# File 'lib/services/auth.rb', line 98 def subscribe(&block) @messaging.subscribe :authentication_response do |res| valid_payload(res.input) yield(res) end end |