This is where I call register():
this.register();
Here's the register():
register = async () => {
await login();
await create();
}
Here are the ones I call:
login = () => {
console.log('test');
}
Ideally, what I want is to finish login() first, then go to create().
Error I get:
Uncaught (in promise) ReferenceError: login is not defined
await this.login()?login, it doesn't exist yet. You need to provide a minimal reproducible example for us to be able to tell you what is wrong.