|
|
@@ -21,12 +21,12 @@ class Auth implements AuthInterface
|
|
|
|
|
|
private static array $config;
|
|
|
|
|
|
- public function __construct(private readonly UserTypeEnum $userType, private readonly Env $env)
|
|
|
+ public function __construct(private readonly UserTypeEnum $userType)
|
|
|
{
|
|
|
if (empty(self::$config)) {
|
|
|
self::$config = [
|
|
|
- 'jwt_secret' => $this->env->get('JWT_SECRET', ''),
|
|
|
- 'expire_in' => (int) $this->env->get('JWT_EXPIRE_IN', 3600),
|
|
|
+ 'jwt_secret' => env('JWT_SECRET', ''),
|
|
|
+ 'expire_in' => (int) env('JWT_EXPIRE_IN', 3600),
|
|
|
];
|
|
|
}
|
|
|
}
|