From 001078876f115eb86250934d2fb24448a8f2566b Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 17 Apr 2013 16:28:01 -0700 Subject: [PATCH] Add a preauth method --- js/id/id.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/id/id.js b/js/id/id.js index ab079e5b3..ca855f199 100644 --- a/js/id/id.js +++ b/js/id/id.js @@ -29,6 +29,11 @@ window.iD = function () { history.merge(result); }); + context.preauth = function(options) { + connection.switch(options); + return context; + }; + /* Straight accessors. Avoid using these if you can. */ context.ui = function() { return ui; }; context.connection = function() { return connection; };