# Slim3 JWT Authentication

**URL:** <https://discourse.slimframework.com/t/slim3-jwt-authentication/299>\
**Category:** Questions\
**Created:** [May 23, 2016, 4:14am UTC](https://discourse.slimframework.com/t/slim3-jwt-authentication/299 "2016-05-23T04:14:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinwaterson](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@kevinwaterson](https://discourse.slimframework.com/u/kevinwaterson)\
**Post date:** [May 23, 2016, 4:14am UTC](https://discourse.slimframework.com/t/slim3-jwt-authentication/299/1 "2016-05-23T04:14:56Z")

</div>

I have a new install of slim 3 and have added jwt auth from [https://github.com/tuupola/slim-jwt-auth](https://github.com/tuupola/slim-jwt-auth)

When I try to access this code. I get nothing. No errors, no logs, nuthin.

How can I get this to auth?

Kind rfegards  
Kevin

My index.php looks like this -\>

\<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; require 'vendor/autoload.php'; $app = new \Slim\App; $app-\>add(new \Slim\Middleware\JwtAuthentication(["secret" =\> "supersecretkeyyoushouldnotcommittogithub"])); $app-\>group('/v1', function () use ($app) { $app-\>get('', function ($req, $res) { echo 'API Version 1'; }); }); $app-\>run();

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [May 23, 2016, 6:18pm UTC](https://discourse.slimframework.com/t/slim3-jwt-authentication/299/2 "2016-05-23T18:18:50Z")

</div>

I’d try turning on [displayErrorDetails](http://www.slimframework.com/docs/handlers/error.html) and see what you get.
