mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
29 lines
702 B
PHP
29 lines
702 B
PHP
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use Tymon\JWTAuth\JWTAuth as BaseJWTAuth;
|
||
|
use Tymon\JWTAuth\JWTManager;
|
||
|
use Tymon\JWTAuth\Providers\Auth\AuthInterface;
|
||
|
use Tymon\JWTAuth\Providers\User\UserInterface;
|
||
|
|
||
|
class JWTAuth extends BaseJWTAuth
|
||
|
{
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function __construct(JWTManager $manager, UserInterface $user, AuthInterface $auth, Request $request)
|
||
|
{
|
||
|
return parent::__construct($manager, $user, $auth, $request);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function parseToken($method = 'bearer', $header = 'authorization', $query = 'jwt-token')
|
||
|
{
|
||
|
return parent::parseToken($method, $header, $query);
|
||
|
}
|
||
|
}
|