Class: BitwardenSDKSecrets::AuthClient

Inherits:
Object
  • Object
show all
Defined in:
lib/auth.rb

Instance Method Summary collapse

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 (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