jingcai-php/vendor/tymon/jwt-auth/tests/Stubs/UserStub.php

31 lines
550 B
PHP
Executable File

<?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Stubs;
use Tymon\JWTAuth\Contracts\JWTSubject;
class UserStub implements JWTSubject
{
public function getJWTIdentifier()
{
return 1;
}
public function getJWTCustomClaims()
{
return [
'foo' => 'bar',
'role' => 'admin',
];
}
}