12345678910111213141516171819202122232425 |
- <?php
- // +----------------------------------------------------------------------
- // | A3Mall
- // +----------------------------------------------------------------------
- // | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Author: xzncit <158373108@qq.com>
- // +----------------------------------------------------------------------
- namespace mall\library\tools\jwt;
- use Lcobucci\JWT\Configuration;
- use Lcobucci\JWT\Signer\Hmac\Sha256;
- use Lcobucci\JWT\Signer\Key\InMemory;
- class Config {
- public static function get(){
- return Configuration::forSymmetricSigner(
- new Sha256(),
- InMemory::base64Encoded(env('jwt.encryption'))
- );
- }
- }
|