🔒 Enables sensetive data to be passed by env var

This commit is contained in:
Alicia Sykes
2024-04-14 20:50:03 +01:00
parent 75f65de8f6
commit 25e774ca79
26 changed files with 54 additions and 51 deletions

View File

@@ -52,15 +52,11 @@ export default {
computed: {
/* Get API key for access to instance */
apiKey() {
const { apiKey } = this.options;
return apiKey;
return this.parseAsEnvVar(this.options.apiKey);
},
/* Get instance URL */
url() {
const { url } = this.options;
return url;
return this.parseAsEnvVar(this.options.url);
},
/* Create authorisation header for the instance from the apiKey */
authHeaders() {