Skip to content

Commit

Permalink
rubocoooooooooop
Browse files Browse the repository at this point in the history
  • Loading branch information
viacheslav-rostovtsev committed Feb 8, 2025
1 parent c93e25a commit 2faa806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/googleauth/api_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,13 @@ def duplicate options = {}
)
end


# Updates the procided hash with the API Key header.
#
# The `apply!` method modifies the provided hash in place, adding the
# `x-goog-api-key` header with the API Key value.
#
# The API Key is hashed before being logged for security purposes.
#
#
# NB: this method typically would be called through `updater_proc`.
# Some older clients call it directly though, so it has to be public.
#
Expand Down
8 changes: 4 additions & 4 deletions lib/googleauth/bearer_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class BearerTokenCredentials
# @return [String] The token to be sent as a part of Bearer claim
attr_reader :token
# The following aliasing is needed for BaseClient since it sends :token_type
alias :access_token :token
alias :jwt :token
alias :id_token :token
alias :bearer_token :token
alias access_token token
alias jwt token
alias id_token token
alias bearer_token token

# @return [Time, nil] The token expiry time provided by the end-user.
attr_reader :expiry
Expand Down

0 comments on commit 2faa806

Please sign in to comment.