Laravel JWT error BadMethodCallException: Method IlluminateAuthSessionGuard::factory does not exist. in file C:OSPaneldomainsxarid.locvendorlaravelframeworksrcIlluminateMacroableTraits
return response()->json([
'access_token' => $token,
'token_type' => 'bearer',
//'expires_in' => auth()->factory()->getTTL() * 60
'expires_in' => auth('api')->factory()->getTTL() * 60
]);