Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove function moved from server file to common file.

Caught by Tim Haines!
  • Loading branch information...
commit 03e0ca8a49b518ad26ebb6e6a8df99f3e2b8d6a6 1 parent 98d587d
@glasser glasser authored
Showing with 0 additions and 11 deletions.
  1. +0 −11 packages/accounts-oauth/oauth_server.js
11 packages/accounts-oauth/oauth_server.js
@@ -1,14 +1,3 @@
-// Helper for registering OAuth based accounts packages.
-// Adds an index to the user collection.
-Accounts.oauth.registerService = function (name) {
- // Accounts.updateOrCreateUserFromExternalService does a lookup by this id,
- // so this should be a unique index. You might want to add indexes for other
- // fields returned by your service (eg services.github.login) but you can do
- // that in your app.
- Meteor.users._ensureIndex('services.' + name + '.id',
- {unique: 1, sparse: 1});
// Listen to calls to `login` with an oauth option set. This is where
// users actually get logged in to meteor via oauth.
Accounts.registerLoginHandler(function (options) {
Please sign in to comment.
Something went wrong with that request. Please try again.