You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Björn eda453c677 init 5 years ago
src/Gear/Auth init 5 years ago
README.md init 5 years ago
composer.json init 5 years ago

README.md

Gear/Auth

// routes that are ignored by auth
$routes = array(
    '/',
);

$app->register('auth', 'Gear\Middleware\AuthMiddleware', array($routes));

// adding jwtHelper
$options = array(
    env('JWT_SECRET'),
    env('JWT_URL'),
    env('JWT_EXPIRED_AT'),
);

$app->register('jwtHelper', 'Gear\Helpers\JwtHelper', $options);

// adding filters
$app->before('start', array(new Gear\Filters\AuthFilter, 'before'));