class BrowseEverything::Auth::Google::Credentials
Public Instance Methods
fetch_access_token(options = {})
click to toggle source
Ensures that every call to retrieve an access token does not require an HTTP request @see Google::Auth::UserRefreshCredentials#fetch_access_token @param options [Hash] the access token values
Calls superclass method
# File lib/browse_everything/auth/google/credentials.rb, line 13 def fetch_access_token(options = {}) return build_token_hash if access_token super(options) end
Private Instance Methods
build_token_hash()
click to toggle source
Structure a hash from existing access token values (usually cached within a Cookie) @return [Hash]
# File lib/browse_everything/auth/google/credentials.rb, line 22 def build_token_hash { 'access_token' => access_token } end