0
Fork 0
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:
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); 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);
} }
} }