This repository has been archived on 2024-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
socketio-jwt/example
2015-11-25 19:22:38 -04:30
..
socketsio-auth0-sample Create README.md 2015-11-25 19:22:38 -04:30
.gitignore Introduced a new example 2015-10-15 17:12:11 -04:30
auth0-variables.js Update auth0-variables 2015-11-25 19:06:04 -04:30
index.html Update index.html 2015-11-25 19:09:05 -04:30
index.js Update index.js 2015-11-25 19:10:15 -04:30
package.json Introduced a new example 2015-10-15 17:12:11 -04:30
README.md Update README.md 2015-11-25 19:15:52 -04:30

Auth0 + Socket.io

This is the seed project you need to use if you're going to create a Socket.io single page app that will use Auth0.

Running the example

First, you need to put your AUTH0_DOMAIN (example.auth0.com), your AUTH0_CLIENT_ID and your AUTH0_CLIENT_SECRET on the auth0-variables.js file . You can find this information in the Application Settings on your Auth0.com dashboard.

In order to run the example, you need to have node installed.

  1. run npm install
  2. run node index.js in the directory of this project.

Go to http://localhost:3001 and you'll see the app running :).