mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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);
|
super(app, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async authenticateWithSecret(secret) {
|
async authenticateWithKey(key) {
|
||||||
this.defaults.queryParams = {
|
this.defaults.queryParams = {
|
||||||
key: secret
|
key
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class ContentAPITestAgent extends TestAgent {
|
||||||
* @description Authenticate with default content api keys
|
* @description Authenticate with default content api keys
|
||||||
*/
|
*/
|
||||||
authenticate() {
|
authenticate() {
|
||||||
return this.authenticateWithSecret(defaultContentAPISecretKey);
|
return this.authenticateWithKey(defaultContentAPISecretKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue