diff --git a/examples/basic-webapp/README.md b/examples/basic-webapp/README.md index 0af5dc19..724aaf83 100644 --- a/examples/basic-webapp/README.md +++ b/examples/basic-webapp/README.md @@ -6,7 +6,7 @@ This example is deployed at Heroku at [http://php-webapp.herokuapp.com/](http:// #Running the example In order to run the example you need to have `composer` and `php` installed. -You also need to set the ClientSecret, ClientId, Domain and Callback URL for your Auth0 app as enviroment variables with the following names respectively: `AUTH0_CLIENT_SECRET`, `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN` and `AUTH0_CALLBACK_URL`. +You also need to set the ClientSecret, ClientId, Domain and Callback URL for your Auth0 app as environment variables with the following names respectively: `AUTH0_CLIENT_SECRET`, `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN` and `AUTH0_CALLBACK_URL`. For that, if you just create a file named `.env` in the directory and set the values like the following, the app will just work: @@ -18,7 +18,7 @@ AUTH0_DOMAIN=yourDomain.auth0.com AUTH0_CALLBACK_URL=http://your.url/ ```` -Once you've set those 4 enviroment variables, just run the following to get the app started: +Once you've set those 4 environment variables, just run the following to get the app started: ````bash composer install diff --git a/examples/basic-webapp/dotenv-loader.php b/examples/basic-webapp/dotenv-loader.php index 8b5b005d..3c548558 100644 --- a/examples/basic-webapp/dotenv-loader.php +++ b/examples/basic-webapp/dotenv-loader.php @@ -6,11 +6,3 @@ } catch(InvalidArgumentException $ex) { // Ignore if no dotenv } - - - - - - - - diff --git a/examples/basic-webapp/index.php b/examples/basic-webapp/index.php index dc55a75c..58407e41 100644 --- a/examples/basic-webapp/index.php +++ b/examples/basic-webapp/index.php @@ -33,8 +33,7 @@