mirror of
https://github.com/jonathan-martz/pocketbase-php-sdk.git
synced 2026-04-03 07:27:42 +00:00
allow to manually define the auth token for client and settings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user