Skip to content

Commit

Permalink
Remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
tuupola committed Mar 19, 2016
1 parent a0be7af commit 279a923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $app->add(new \Slim\Middleware\JwtAuthentication([

### Environment

By default middleware tries to find the token from HTTP_AUTHORIZATION and REDIRECT_HTTP_AUTHORIZATION environments. You can change this using `environment` parameter.
By default middleware tries to find the token from `HTTP_AUTHORIZATION` and `REDIRECT_HTTP_AUTHORIZATION` environments. You can change this using `environment` parameter.

``` php
$app = new \Slim\App();
Expand Down Expand Up @@ -171,7 +171,7 @@ $app = new \Slim\App();

$app->add(new \Slim\Middleware\JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"error" => function ($request, $response, $arguments) use ($app) {
"error" => function ($request, $response, $arguments) {
return $response->write("Error");
}
]));
Expand Down Expand Up @@ -227,7 +227,7 @@ $app->add(new \Slim\Middleware\HttpBasicAuthentication([
]
]));

$app->post("/token", function () use ($app) {
$app->post("/token", function () {
/* Here generate and return JWT to the client. */
});
```
Expand Down

0 comments on commit 279a923

Please sign in to comment.