mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Renamed content api agent auth method
- the query param is called key, so key is easier to remember
This commit is contained in:
parent
642b6ff8ae
commit
409a4783a3
1 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,9 @@ class ContentAPITestAgent extends TestAgent {
|
|||
super(app, options);
|
||||
}
|
||||
|
||||
async authenticateWithSecret(secret) {
|
||||
async authenticateWithKey(key) {
|
||||
this.defaults.queryParams = {
|
||||
key: secret
|
||||
key
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ class ContentAPITestAgent extends TestAgent {
|
|||
* @description Authenticate with default content api keys
|
||||
*/
|
||||
authenticate() {
|
||||
return this.authenticateWithSecret(defaultContentAPISecretKey);
|
||||
return this.authenticateWithKey(defaultContentAPISecretKey);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue