Given the following code:
async #token() {
const value = await this.belcorp.getAccessToken();
console.log(value);
}
But if I try to return that same result in my constructor with this code:
constructor() {
const token = this.#token();
console.log(token);
}
async #token() {
return await this.belcorp.getAccessToken();
}
What should I do to retrieve only the previous object?