Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class ServiceAbstractBase extends ServiceAbstract |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @param array $properties |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function createToken($properties = []) |
||
23 | { |
||
24 | $jwt = new JwtWrapper(Psr11::container()->get('JWT_SERVER'), Psr11::container()->get('JWT_SECRET')); |
||
25 | $jwtData = $jwt->createJwtData($properties, 1800); |
||
26 | return $jwt->generateToken($jwtData); |
||
27 | } |
||
28 | |||
29 | public function decodePreviousToken($token = null) |
||
37 | } |
||
38 | } |
||
40 |