index.js
function(url)
    {
      //Parse the redirected url
      return provider.authorization_done(opt, url, window, function()
      {
        //Destroy the window
        window.destroy();

        //Get the arguments
        var args = [].slice.call(arguments);

        //Do the callback with the provided arguments
        return cb.apply(null, args);
      });
    }
function(url)
    {
      //Parse the redirected url
      return provider.authorization_done(opt, url, window, function()
      {
        //Destroy the window
        window.destroy();

        //Get the arguments
        var args = [].slice.call(arguments);

        //Do the callback with the provided arguments
        return cb.apply(null, args);
      });
    }
function ( url ) { //Parse the redirected url return provider . authorization_done ( opt , url , window , function ( ) { //Destroy the window window . destroy ( ) ; //Get the arguments var args = [ ] . slice . call ( arguments ) ; //Do the callback with the provided arguments return cb . apply ( null , args ) ; } ) ; }
Handle the callback
Handle the callback