Skip to content

Commit

Permalink
Merge pull request #2554 from phili67/phili67-tuupola-slim-jwt-auth
Browse files Browse the repository at this point in the history
return to tuupola/slim-jwt-auth
  • Loading branch information
phili67 committed Mar 13, 2024
2 parents 904c69a + 21c0259 commit 1bd36b4
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/api/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

$app->add( new VersionMiddleware() );

$app->add(new JWTMiddleware([
$app->add(new Tuupola\Middleware\JwtAuthentication([
"secret" => SessionUser::getUser()->getJwtSecretForApi(),
"secure" => SessionUser::getUser()->isSecure(),
"path" => "/api",
Expand Down
2 changes: 1 addition & 1 deletion src/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"php-di/php-di": "^6.3",
"tecnickcom/tcpdf": "^6.4",
"robthree/twofactorauth": "^1.8",
"firebase/php-jwt": "^6.4"
"tuupola/slim-jwt-auth": "^3.8"
},
"autoload": {
"classmap": [
Expand Down
Loading

0 comments on commit 1bd36b4

Please sign in to comment.