[Vuejs]-VueJs – promise returned but redirection does not happen

0πŸ‘

Are you sure that your AuthenticationService.register is actually returning a promise correctly?

The await expression causes async function execution to pause until a Promise is fulfilled, that is resolved or rejected, and to resume execution of the async function after fulfillment. When resumed, the value of the await expression is that of the fulfilled Promise.

For more info see MDN web docs – await

0πŸ‘

once I commented out this line in Registration.vue everything worked.

res.status(200).send('registration successful');

not sure why..

Leave a comment