lib/gplus/client.rb in gplus-1.0.0 vs lib/gplus/client.rb in gplus-1.0.1
- old
+ new
@@ -66,9 +66,10 @@
@access_token ||= OAuth2::AccessToken.new(@oauth_client, @token, :refresh_token => @refresh_token, :expires_at => @token_expires_at)
if @access_token.expired?
@access_token.refresh!
@access_token_refreshed = true
end
+ @access_token
end
end
# Return true if the user's access token has been refreshed. If so, you should store the new token's :token and :expires_at.
def access_token_refreshed?