From cda9fe25db5d9256c54146490cd8e76cd637f176 Mon Sep 17 00:00:00 2001 From: Annyv2 Date: Tue, 1 Dec 2015 15:45:49 -0430 Subject: [PATCH] Update README.md --- example/socketsio-auth0-sample/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/example/socketsio-auth0-sample/README.md b/example/socketsio-auth0-sample/README.md index a8467fc..ccc146e 100644 --- a/example/socketsio-auth0-sample/README.md +++ b/example/socketsio-auth0-sample/README.md @@ -4,7 +4,16 @@ This is the seed project you need to use if you're going to create a Socket.io s ### Configure your Auth0 credentials -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. +First, you need to set the ClientSecret, ClientId and Domain for your Auth0 app as environment variables with the following names respectively: `AUTH0_CLIENT_SECRET`, `AUTH0_CLIENT_ID` and `AUTH0_DOMAIN`. You can find this information in your Auth0 Dashboard. + +So, create a file named `.env` in the directory and set the values like the following: + +````bash +# .env file +AUTH0_CLIENT_SECRET=myCoolSecret +AUTH0_CLIENT_ID=myCoolClientId +AUTH0_DOMAIN=myCoolDomain +```` ### Set up the Allowed Origin (CORS) in Auth0