/meteor-accounts-merge-example

Example implementation of accounts-merge

Primary LanguageJavaScriptMIT LicenseMIT

accounts-merge example

This is an example implementation of the Meteor accounts-merge package.

Run it like this:

$ git clone https://github.com/lirbank/meteor-accounts-merge-example.git
$ cd meteor-accounts-merge-example/
$ meteor

Get login service API keys

The example app is already configured with API keys for three login providers, but you should replace the API credentials with your own. It's done like this:

Facebook - Register your app on Facebook:

  1. Visit https://developers.facebook.com/apps
  2. Select "Apps", then "Create a New App". (You don't need to enter a namespace.)
  3. Select "Settings" and enter a "Contact Email". Then select "Add Platform" and choose "Website".
  4. Set Site URL to: http://localhost:3000/
  5. Select "Status" and make the app and all its live features available to the general public.
  6. Select "Dashboard".

Now, copy over "App ID" and "App Secret" to the server/config.js file.

Google - Get a Google Client ID:

  1. Visit https://code.google.com/apis/console/
  2. If necessary, "Create Project"
  3. Click "APIs & auth" and "Credentials" on the left
  4. Click the "Create New Client ID" button
  5. Choose "Web application" as the type
  6. Set Authorized Javascript Origins to: http://localhost:3000/
  7. Set Authorized Redirect URI to: http://localhost:3000/_oauth/google?close
  8. Click "Create Client ID"

Now, copy over "Client ID" and "Client secret" to the server/config.js file.

Twitter - Register your app on Twitter

  1. Visit https://dev.twitter.com/apps/new
  2. Set Callback URL to: http://127.0.0.1:3000/_oauth/twitter?close

Now, copy over "Consumer key" and "Consumer secret" to the server/config.js file.