Skip to content

Commit

Permalink
Update example.rb with state
Browse files Browse the repository at this point in the history
  • Loading branch information
differsthecat authored Mar 11, 2024
1 parent 5352683 commit aa4dfb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion languages/ruby/examples/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

token = ENV['ACCESS_TOKEN']
organization_id = ENV['ORGANIZATION_ID']
state_path = ENV['STATE_PATH']

# Configuring the URLS is optional, set them to nil to use the default values
api_url = ENV['API_URL']
Expand All @@ -11,7 +12,7 @@
bitwarden_settings = BitwardenSDKSecrets::BitwardenSettings.new(api_url, identity_url)

bw_client = BitwardenSDKSecrets::BitwardenClient.new(bitwarden_settings)
response = bw_client.access_token_login(token)
response = bw_client.access_token_login(token, state_path)
puts response

# CREATE project
Expand Down

0 comments on commit aa4dfb9

Please sign in to comment.