allow to manually define the auth token for client and settings

This commit is contained in:
Anthony Bellancourt
2025-01-21 17:21:53 +01:00
parent 7c2253c896
commit 9b1ded7968
3 changed files with 14 additions and 5 deletions

View File

@@ -19,11 +19,12 @@ class Settings
/**
* @param string $url
* @param string $collection
* @param string $token
*/
public function __construct(string $url)
public function __construct(string $url, string $token)
{
$this->url = $url;
self::$token = $token;
}
public function authAsAdmin(string $email, string $password): void