Skip to content

Instantly share code, notes, and snippets.

@lefnire
Created July 13, 2013 20:31
Show Gist options
  • Save lefnire/5992113 to your computer and use it in GitHub Desktop.
Save lefnire/5992113 to your computer and use it in GitHub Desktop.
diff
diff --git a/store.js b/store.js
index 4555f47..706db4e 100644
--- a/store.js
+++ b/store.js
@@ -84,7 +84,7 @@ var setupQueries = function(store) {
return this
.where("auth." + provider + ".id")
.equals(id)
- .only("auth." + provider + ".id")
+ .only(["auth." + provider + ".id", "apiToken"])
.findOne();
});
store.queryAccess('users', 'withProvider', function(provider, id, accept, err) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment