ensure save emits are executed before we return to the user

race conditions can happen when the user uses this express app to generate a token and then tries to use the access_token before the save transaction was successful