0
Fork 0
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:
Hannah Wolfe 2022-09-02 10:48:03 +01:00
parent 642b6ff8ae
commit 409a4783a3
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037

View file

@ -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);
}
}