Class: BitwardenSDKSecrets::AuthClient
- Inherits:
-
Object
- Object
- BitwardenSDKSecrets::AuthClient
- Defined in:
- lib/auth.rb
Instance Method Summary collapse
-
#initialize(command_runner) ⇒ AuthClient
constructor
A new instance of AuthClient.
- #login_access_token(access_token, state_file = nil) ⇒ Object
Constructor Details
#initialize(command_runner) ⇒ AuthClient
Returns a new instance of AuthClient.
6 7 8 |
# File 'lib/auth.rb', line 6 def initialize(command_runner) @command_runner = command_runner end |
Instance Method Details
#login_access_token(access_token, state_file = nil) ⇒ Object
10 11 12 13 14 |
# File 'lib/auth.rb', line 10 def login_access_token(access_token, state_file = nil) access_token_request = AccessTokenLoginRequest.new(access_token: access_token, state_file: state_file) @command_runner.run(SelectiveCommand.new(login_access_token: access_token_request)) nil end |