lib/browse_everything/driver/google_drive.rb
# Request to authorize the provider
# This is *the* method which, passing an HTTP request, redeems an authorization code for an access token
# @return [String] a new access token
Request to authorize the provider
This is *the* method which, passing an HTTP request, redeems an authorization code for an access token
Request to authorize the provider This is * the * method which passing an HTTP request redeems an authorization code for an access token
def authorize!
        @credentials = authorizer.get_credentials_from_code(user_id: user_id, code: code)
        @token = @credentials.access_token
        @code = nil 
        @token
      end
def authorize! @credentials = authorizer . get_credentials_from_code ( user_id : user_id , code : code ) @token = @credentials . access_token @code = nil @token end
Request to authorize the provider
This is *the* method which, passing an HTTP request, redeems an authorization code for an access token
Request to authorize the provider This is * the * method which passing an HTTP request redeems an authorization code for an access token
# The authorization code can only be redeemed for an access token once
a new access token
a new access token
String