mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Added expiry checking to API token auth
- Added test to cover to ensure its checked going forward
This commit is contained in:
@ -13,4 +13,11 @@ trait TestsApi
|
||||
return ["error" => ["code" => $code, "message" => $messge]];
|
||||
}
|
||||
|
||||
protected function apiAuthHeader()
|
||||
{
|
||||
return [
|
||||
"Authorization" => "Token {$this->apiTokenId}:{$this->apiTokenSecret}"
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user