Module: BSV::Wallet::Client::Authentication
- Included in:
- BSV::Wallet::Client
- Defined in:
- lib/bsv/wallet/client/brc100/authentication.rb
Overview
Authentication methods for BSV::Wallet::Client.
Instance Method Summary collapse
-
#is_authenticated(args = {}, originator: nil) ⇒ Hash
Checks whether the user is authenticated.
-
#wait_for_authentication(args = {}, originator: nil) ⇒ Hash
Waits until the user is authenticated.
Instance Method Details
#is_authenticated(args = {}, originator: nil) ⇒ Hash
Checks whether the user is authenticated.
11 12 13 14 15 |
# File 'lib/bsv/wallet/client/brc100/authentication.rb', line 11 def is_authenticated(args = {}, originator: nil) return @substrate.is_authenticated(args, originator: originator) if @substrate { authenticated: true } end |
#wait_for_authentication(args = {}, originator: nil) ⇒ Hash
Waits until the user is authenticated.
20 21 22 23 24 |
# File 'lib/bsv/wallet/client/brc100/authentication.rb', line 20 def wait_for_authentication(args = {}, originator: nil) return @substrate.wait_for_authentication(args, originator: originator) if @substrate { authenticated: true } end |