Permalink
Browse files

fixed a bug that prohibits the reuse of existing tokens.

  • Loading branch information...
1 parent afbfe2a commit d813fa271e50f50dacd0f03cc17c1c11d3847b00 @xiepeng committed Feb 22, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/dynamoDB.js
View
@@ -5,18 +5,17 @@
http = require('http');
+var db = new Object();
+db.description = "Object for accessing Amazon DynamoDB.";
+db.securityToken= null;
+
exports.DynamoDB = function (credentials, endpoint) {
/* Default endpoint for dynamoDB. */
if (! endpoint) endpoint = 'dynamodb.us-east-1.amazonaws.com';
var auth = require('../lib/auth');
- var db = new Object();
-
- db.description = "Object for accessing Amazon DynamoDB.";
- db.securityToken= null;
-
var queryDB = function (actionType, timestampGMT, query, token, callback) {
// console.log("stringToSign:");

0 comments on commit d813fa2

Please sign in to comment.