https://github.com/intercom/passport-intercom-example-app
Example web app using passport-intercom
https://github.com/intercom/passport-intercom-example-app
Last synced: 10 months ago
JSON representation
Example web app using passport-intercom
- Host: GitHub
- URL: https://github.com/intercom/passport-intercom-example-app
- Owner: intercom
- Created: 2016-08-10T18:44:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T03:16:14.000Z (almost 3 years ago)
- Last Synced: 2025-04-12T06:42:52.471Z (10 months ago)
- Language: JavaScript
- Homepage: https://developers.intercom.io/reference#oauth
- Size: 13.7 KB
- Stars: 7
- Watchers: 160
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Passport Intercom Example App
=============================
Example node web app using [passport-intercom](https://github.com/intercom/passport-intercom)
## Instructions
To install this example on your computer, clone the repository and install
dependencies.
You'll also need a MongoDB instance running.
```bash
$ git clone git@github.com:intercom/passport-intercom-example-app.git
$ cd passport-intercom-example-app
$ cp server/config_example.js server/config.js
$ npm install
```
Replace the `clientID`, `clientSecret`, `callbackURL` values in `server/config.js` appropriately after applying for OAuth client details that you can find in an app's details page in the [Developer Hub](https://app.intercom.com/a/apps/_/developer-hub).
Modify the MongoDB connection URL in `server/app.js` if necessary.
Start the server.
```bash
$ npm start
```
Open a web browser and navigate to [http://localhost:3000/](http://localhost:3000/)
to see the example in action.
Based on:
http://mherman.org/blog/2015/09/26/social-authentication-in-node-dot-js-with-passport/